...
|
...
|
@@ -353,14 +353,15 @@ func (controller *SuMoneyController) ImportExchangeList () { |
|
|
createExchangeCashPersonCommand.ExchangeCashActivityId = activityId
|
|
|
// TODO 非空校验
|
|
|
if createExchangeCashPersonCommand.PersonName == "" || createExchangeCashPersonCommand.PersonAccount == "" || createExchangeCashPersonCommand.ExchangedSuMoney == 0{
|
|
|
|
|
|
controller.Ctx.WriteString( "空字段" )
|
|
|
return
|
|
|
}
|
|
|
createExchangeCashPersonCommand.Operator = operator
|
|
|
createExchangeCashPersonCommand.PersonName = row[0]
|
|
|
createExchangeCashPersonCommand.PersonAccount = row[1]
|
|
|
createExchangeCashPersonCommand.ExchangedSuMoney, _ = strconv.ParseFloat(row[2], 64)
|
|
|
}
|
|
|
fmt.Print(createExchangeCashPersonCommand)
|
|
|
|
|
|
data, err := cashPoolService.CreateExchangeCashPerson(createExchangeCashPersonCommand)
|
|
|
if err != nil {
|
|
|
response = utils.ResponseError(controller.Ctx, err)
|
...
|
...
|
|