DengBiao 10ヶ月前
コミット
af7bdc1351
2個のファイルの変更5行の追加5行の削除
  1. +3
    -3
      app/customer/md/md_order.go
  2. +2
    -2
      app/customer/svc/order/svc_central_kitchen_for_school_order.go

+ 3
- 3
app/customer/md/md_order.go ファイルの表示

@@ -71,9 +71,9 @@ type CentralKitchenForSchoolMyReserveListResp struct {
}

type CentralKitchenForSchoolMyReserveListRespList struct {
Month int `json:"month" label:"月份"`
TotalAmount float64 `json:"total_amount" label:"总金额"`
RefundTotalAmount float64 `json:"refund_total_amount" label:"退款总金额"`
Month int `json:"month" label:"月份"`
TotalAmount string `json:"total_amount" label:"总金额"`
RefundTotalAmount string `json:"refund_total_amount" label:"退款总金额"`
}

type SelfSupportForSchoolOrderListReq struct {


+ 2
- 2
app/customer/svc/order/svc_central_kitchen_for_school_order.go ファイルの表示

@@ -286,10 +286,10 @@ func CentralKitchenForSchoolMyReserveList(userIdentityId int, date, startDate, e
dateMap[tmpDateMonth] = &md.CentralKitchenForSchoolMyReserveListRespList{}
}
dateMap[tmpDateMonth].Month = tmpDateMonth
dateMap[tmpDateMonth].TotalAmount += utils.StrToFloat64(v.Amount)
dateMap[tmpDateMonth].TotalAmount = utils.Float64ToStr(utils.StrToFloat64(dateMap[tmpDateMonth].TotalAmount) + utils.StrToFloat64(v.Amount))
totalAmount += utils.StrToFloat64(v.Amount)
if v.State == enum.CentralKitchenForSchoolUserWithDayStateForCancel {
dateMap[tmpDateMonth].RefundTotalAmount += utils.StrToFloat64(v.Amount)
dateMap[tmpDateMonth].RefundTotalAmount = utils.Float64ToStr(utils.StrToFloat64(dateMap[tmpDateMonth].RefundTotalAmount) + utils.StrToFloat64(v.Amount))
}
}



読み込み中…
キャンセル
保存