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