From e953ef9c68d83afd8f2b7233715e744f68e7b9ee Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 8 Jan 2024 10:39:57 +0800 Subject: [PATCH] update --- app/customer/md/md_order.go | 2 +- app/customer/svc/order/svc_central_kitchen_for_school_order.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }