作者 陈志颖

fix:导入理由修改

@@ -13,3 +13,50 @@ @@ -13,3 +13,50 @@
13 BodyData:{} 13 BodyData:{}
14 2020/11/22 20:17:34.775 [D] [server.go:2843] <====Send RequestId:GET./log.1606047454775197000 BodyData:null 14 2020/11/22 20:17:34.775 [D] [server.go:2843] <====Send RequestId:GET./log.1606047454775197000 BodyData:null
15 2020/11/22 20:17:34.776 [D] [server.go:1925] | ::1| 200 | 831.181µs| match| GET  /log r:/log 15 2020/11/22 20:17:34.776 [D] [server.go:1925] | ::1| 200 | 831.181µs| match| GET  /log r:/log
  16 +2020/11/22 21:03:52.762 [I] [???:0] http server Running on http://:8082
  17 +2020/11/22 21:04:10.396 [D] [server.go:2843] ====>Recv User:<nil> RequestId:POST./cash-pool/activity.1606050250396467000
  18 + Auth=
  19 + BodyData:{
  20 + "companyId": 311,
  21 + "exchangeActivityName": "这是公司311的兑换活动7",
  22 + "deadline": "2020-11-28T23:59:59+08:00",
  23 + "exchangeRate": 5
  24 +}
  25 +2020/11/22 21:04:10.684 [D] [server.go:2843] <====Send RequestId:POST./cash-pool/activity.1606050250396467000 BodyData:{"code":0,"data":{"activityId":84,"exchangeActivityName":"这是公司311的兑换活动7","companyId":311,"exchangedCash":0,"exchangedSuMoney":0,"deadline":"2020-11-28T23:59:59+08:00","countDown":7,"rate":5,"createTime":"2020-11-22T21:04:10.635284+08:00"},"msg":"ok"}
  26 +2020/11/22 21:04:10.684 [D] [server.go:1925] | 127.0.0.1| 200 | 287.779706ms| match| POST  /cash-pool/activity r:/cash-pool/activity
  27 +2020/11/22 21:04:17.953 [D] [server.go:2843] ====>Recv User:<nil> RequestId:POST./cash-pool/activity.1606050257953466000
  28 + Auth=
  29 + BodyData:{
  30 + "companyId": 311,
  31 + "exchangeActivityName": "这是公司311的兑换活动7",
  32 + "deadline": "2020-11-29T23:59:59+08:00",
  33 + "exchangeRate": 5
  34 +}
  35 +2020/11/22 21:04:18.046 [D] [server.go:2843] <====Send RequestId:POST./cash-pool/activity.1606050257953466000 BodyData:{"code":0,"data":{"activityId":85,"exchangeActivityName":"这是公司311的兑换活动7","companyId":311,"exchangedCash":0,"exchangedSuMoney":0,"deadline":"2020-11-29T23:59:59+08:00","countDown":8,"rate":5,"createTime":"2020-11-22T21:04:18.026441+08:00"},"msg":"ok"}
  36 +2020/11/22 21:04:18.046 [D] [server.go:1925] | 127.0.0.1| 200 | 93.162265ms| match| POST  /cash-pool/activity r:/cash-pool/activity
  37 +2020/11/22 21:04:21.294 [D] [server.go:2843] ====>Recv User:<nil> RequestId:POST./cash-pool/activity.1606050261294109000
  38 + Auth=
  39 + BodyData:{
  40 + "companyId": 311,
  41 + "exchangeActivityName": "这是公司311的兑换活动7",
  42 + "deadline": "2020-11-29T23:59:59+08:00",
  43 + "exchangeRate": 5
  44 +}
  45 +2020/11/22 21:04:21.328 [D] [server.go:2843] <====Send RequestId:POST./cash-pool/activity.1606050261294109000 BodyData:{"code":501,"msg":"内部服务出错:兑换活动截止时间不能重合"}
  46 +2020/11/22 21:04:21.328 [D] [server.go:1925] | 127.0.0.1| 200 | 34.510175ms| match| POST  /cash-pool/activity r:/cash-pool/activity
  47 +2020/11/22 21:04:33.900 [D] [server.go:2843] ====>Recv User:<nil> RequestId:GET./cash-pool/activity/deadline-list?companyId=311.1606050273900508000
  48 + Auth=
  49 + BodyData:{}
  50 +2020/11/22 21:04:33.902 [D] [server.go:2843] <====Send RequestId:GET./cash-pool/activity/deadline-list?companyId=311.1606050273900508000 BodyData:{"code":0,"data":{"deadlines":["2020-11-29","2020-11-28","2020-11-27","2020-11-24","2020-11-22","2020-11-23"]},"msg":"ok"}
  51 +2020/11/22 21:04:33.902 [D] [server.go:1925] | 127.0.0.1| 200 | 1.972158ms| match| GET  /cash-pool/activity/deadline-list r:/cash-pool/activity/deadline-list
  52 +2020/11/22 21:04:45.787 [D] [server.go:2843] ====>Recv User:<nil> RequestId:POST./cash-pool/activity/search-activity.1606050285787180000
  53 + Auth=
  54 + BodyData:{
  55 + "companyId": 311,
  56 + "deadline": "2020-11-29",
  57 + "activityNameMatch": "",
  58 + "offset": 0,
  59 + "limit": 20
  60 +}
  61 +2020/11/22 21:04:45.834 [D] [server.go:2843] <====Send RequestId:POST./cash-pool/activity/search-activity.1606050285787180000 BodyData:{"code":0,"data":{"activities":[{"activityId":85,"companyId":311,"countDown":8,"createTime":"2020-11-22T21:04:18.026441+08:00","deadline":"2020-11-29T23:59:59+08:00","exchangeActivityName":"这是公司311的兑换活动7","exchangedCash":0,"exchangedSuMoney":0,"rate":5}],"count":1},"msg":"ok"}
  62 +2020/11/22 21:04:45.834 [D] [server.go:1925] | 127.0.0.1| 200 | 47.029815ms| match| POST  /cash-pool/activity/search-activity r:/cash-pool/activity/search-activity
@@ -1530,8 +1530,8 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc @@ -1530,8 +1530,8 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc
1530 Uid: employeeFound.EmployeeInfo.Uid, 1530 Uid: employeeFound.EmployeeInfo.Uid,
1531 Operator: createExchangeCashPersonCommand.Operator, 1531 Operator: createExchangeCashPersonCommand.Operator,
1532 SuMoney: createExchangeCashPersonCommand.ExchangedSuMoney, 1532 SuMoney: createExchangeCashPersonCommand.ExchangedSuMoney,
1533 - OperationType: 41,  
1534 - OperationDescription: activityFound.ExchangeActivityName + "调整", 1533 + OperationType: 4,
  1534 + OperationDescription: "参与" + activityFound.ExchangeActivityName,
1535 } 1535 }
1536 1536
1537 // 操作素币,生成素币流水 1537 // 操作素币,生成素币流水
@@ -1631,7 +1631,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc @@ -1631,7 +1631,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc
1631 Operator: createExchangeCashPersonCommand.Operator, 1631 Operator: createExchangeCashPersonCommand.Operator,
1632 SuMoney: createExchangeCashPersonCommand.ExchangedSuMoney, 1632 SuMoney: createExchangeCashPersonCommand.ExchangedSuMoney,
1633 OperationType: 4, 1633 OperationType: 4,
1634 - OperationDescription: "素币兑换现金", 1634 + OperationDescription: "参与" + activityFound.ExchangeActivityName,
1635 } 1635 }
1636 1636
1637 // 操作素币,生成素币流水 1637 // 操作素币,生成素币流水