作者 陈志颖

fix:修改兑换清单导入

@@ -1072,6 +1072,8 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC @@ -1072,6 +1072,8 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC
1072 return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(removeExchangeCashPersonCommand.ListId))) 1072 return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", string(removeExchangeCashPersonCommand.ListId)))
1073 } 1073 }
1074 1074
  1075 + fmt.Print(person.EmployeeInfo.Uid, "\n")
  1076 +
1075 var exchangeCashActivityRepository domain.ExchangeActivityRepository 1077 var exchangeCashActivityRepository domain.ExchangeActivityRepository
1076 if value, err := factory.CreateExchangeCashActivityRepository(map[string]interface{}{ 1078 if value, err := factory.CreateExchangeCashActivityRepository(map[string]interface{}{
1077 "transactionContext": transactionContext, 1079 "transactionContext": transactionContext,
@@ -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)