From be906a277237253416bc018f9378b0bda57d01d4 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 12 Mar 2024 15:10:27 +0800 Subject: [PATCH] update --- .../enterprise_manage/svc_central_kitchen_for_school.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go index f6a3f8d..319fd4d 100644 --- a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go +++ b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go @@ -869,7 +869,13 @@ func CentralKitchenForSchoolOrdStatistics(req md.CentralKitchenForSchoolOrdListR sess4.In("user_identity.id", classWithUserIdentityIdsTwo) sess5.In("user_identity.id", classWithUserIdentityIdsTwo) } - + if req.PayWay != 0 { + sess1.And("central_kitchen_for_school_package_ord.pay_way = ?", req.PayWay) + sess2.And("central_kitchen_for_school_package_ord.pay_way = ?", req.PayWay) + sess3.And("central_kitchen_for_school_package_ord.pay_way = ?", req.PayWay) + sess4.And("central_kitchen_for_school_package_ord.pay_way = ?", req.PayWay) + sess5.And("central_kitchen_for_school_package_ord.pay_way = ?", req.PayWay) + } var m []*db.CentralKitchenForSchoolPackageOrdWithUserIdentity personNum, err = sess1.