diff --git a/app/customer/md/md_order.go b/app/customer/md/md_order.go index 2201dec..bf39bcf 100644 --- a/app/customer/md/md_order.go +++ b/app/customer/md/md_order.go @@ -66,7 +66,7 @@ type CentralKitchenForSchoolMyReserveRespList struct { type CentralKitchenForSchoolMyReserveListResp struct { Date string `json:"date" label:"日期"` - TotalAmount float64 `json:"total_amount" label:"总计金额"` + TotalAmount string `json:"total_amount" label:"总计金额"` List []CentralKitchenForSchoolMyReserveListRespList `json:"list" label:"列表"` } diff --git a/app/customer/svc/order/svc_central_kitchen_for_school_order.go b/app/customer/svc/order/svc_central_kitchen_for_school_order.go index 59a34e5..5f2517e 100644 --- a/app/customer/svc/order/svc_central_kitchen_for_school_order.go +++ b/app/customer/svc/order/svc_central_kitchen_for_school_order.go @@ -297,6 +297,6 @@ func CentralKitchenForSchoolMyReserveList(userIdentityId int, date, startDate, e resp.List = append(resp.List, *dateMap[value]) } - resp.TotalAmount = totalAmount + resp.TotalAmount = utils.AnyToString(totalAmount) return }