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