...
|
...
|
@@ -394,9 +394,12 @@ func (controller *SuMoneyController) ExchangeCashListRanking() { |
|
|
// 导入兑换素币清单
|
|
|
func (controller *SuMoneyController) ImportExchangeList () {
|
|
|
cashPoolService := service.NewCashPoolService(nil)
|
|
|
importExchangeCashListCommand := &command.ImportExchangeCashListCommand{}
|
|
|
json.Unmarshal(controller.Ctx.Input.GetData("requestBody").([]byte), importExchangeCashListCommand)
|
|
|
//fmt.Printf("命令:%+v\n", importExchangeCashListCommand)
|
|
|
//importExchangeCashListCommand := &command.ImportExchangeCashListCommand{}
|
|
|
//json.Unmarshal(controller.Ctx.Input.GetData("requestBody").([]byte), importExchangeCashListCommand)
|
|
|
//fmt.Printf("命令:%+v\n", importExchangeCashListCommand.Where)
|
|
|
fmt.Print(controller.GetString("where"), "\n")
|
|
|
where := controller.GetString("where")
|
|
|
//fmt.Print(reflect.TypeOf(importExchangeCashListCommand.Where), "\n")
|
|
|
file, h, _ := controller.GetFile("file")
|
|
|
|
|
|
// 错误信息返回
|
...
|
...
|
@@ -478,8 +481,9 @@ func (controller *SuMoneyController) ImportExchangeList () { |
|
|
if i > 2 && len(row) > 1 {
|
|
|
// 创建兑换清单命令
|
|
|
createExchangeCashPersonCommand := &command.CreateExchangeCashPersonCommand{}
|
|
|
createExchangeCashPersonCommand.ExchangeCashActivityId ,err = strconv.ParseInt(importExchangeCashListCommand.Where["activityId"].(string), 10, 64)
|
|
|
createExchangeCashPersonCommand.Operator = importExchangeCashListCommand.Where["uid"].(int64)
|
|
|
//createExchangeCashPersonCommand.ExchangeCashActivityId = importExchangeCashListCommand.Where["activityId"].(int64)
|
|
|
createExchangeCashPersonCommand.ExchangeCashActivityId = int64(where[0])
|
|
|
createExchangeCashPersonCommand.Operator = int64(where[1])
|
|
|
createExchangeCashPersonCommand.PersonName = row[0]
|
|
|
createExchangeCashPersonCommand.PersonAccount = row[1]
|
|
|
r2, _ := strconv.ParseFloat(row[2], 64)
|
...
|
...
|
|