|
@@ -1481,7 +1481,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
@@ -1481,7 +1481,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
1481
|
operationSuMoneyService = value
|
1481
|
operationSuMoneyService = value
|
1482
|
}
|
1482
|
}
|
1483
|
|
1483
|
|
1484
|
- // 循环添加
|
1484
|
+ // 循环添加素币兑换清单
|
1485
|
for _, createExchangeCashPersonCommand := range createExchangeCashPersonCommands {
|
1485
|
for _, createExchangeCashPersonCommand := range createExchangeCashPersonCommands {
|
1486
|
// 获取当前兑换清单兑换活动
|
1486
|
// 获取当前兑换清单兑换活动
|
1487
|
activityFound, err := exchangeCashActivityRepository.FindOne(map[string]interface{}{"activityId": createExchangeCashPersonCommand.ExchangeCashActivityId})
|
1487
|
activityFound, err := exchangeCashActivityRepository.FindOne(map[string]interface{}{"activityId": createExchangeCashPersonCommand.ExchangeCashActivityId})
|
|
@@ -1570,7 +1570,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
@@ -1570,7 +1570,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
1570
|
})
|
1570
|
})
|
1571
|
if personFound == nil { // 当前人员不在兑换素币清单中,新增兑换素币清单
|
1571
|
if personFound == nil { // 当前人员不在兑换素币清单中,新增兑换素币清单
|
1572
|
// 判断该员工兑换的素币是否超过本人持有的素币
|
1572
|
// 判断该员工兑换的素币是否超过本人持有的素币
|
1573
|
- if (createExchangeCashPersonCommand.ExchangedSuMoney - employeeFoundSuMoney) > employeeFoundSuMoney {
|
1573
|
+ if createExchangeCashPersonCommand.ExchangedSuMoney > employeeFoundSuMoney {
|
1574
|
row := []interface{}{
|
1574
|
row := []interface{}{
|
1575
|
createExchangeCashPersonCommand.PersonName,
|
1575
|
createExchangeCashPersonCommand.PersonName,
|
1576
|
createExchangeCashPersonCommand.PersonAccount,
|
1576
|
createExchangeCashPersonCommand.PersonAccount,
|