From 1eee9f52d2dd2479d3639116c8e8a46a278328dc Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 12 Mar 2024 15:11:20 +0800 Subject: [PATCH] update --- .../svc_central_kitchen_for_school.go | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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 319fd4d..1f9c887 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 @@ -642,10 +642,10 @@ func CentralKitchenForSchoolOrdList(req md.CentralKitchenForSchoolOrdListReq) (r } } if req.StartDate != "" { - sess.And("central_kitchen_for_school_package_ord.create_at >= ?", req.StartDate) + sess.And("central_kitchen_for_school_package_ord.pay_at >= ?", req.StartDate) } if req.EndDate != "" { - sess.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) + sess.And("central_kitchen_for_school_package_ord.pay_at <= ?", req.EndDate) } if req.Kind != 0 { sess.And("central_kitchen_for_school_package_ord.kind = ?", req.Kind) @@ -790,18 +790,18 @@ func CentralKitchenForSchoolOrdStatistics(req md.CentralKitchenForSchoolOrdListR } } if req.StartDate != "" { - sess1.And("central_kitchen_for_school_package_ord.create_at >= ?", req.StartDate) - sess2.And("central_kitchen_for_school_package_ord.create_at >= ?", req.StartDate) - sess3.And("central_kitchen_for_school_package_ord.create_at >= ?", req.StartDate) - sess4.And("central_kitchen_for_school_package_ord.create_at >= ?", req.StartDate) - sess5.And("central_kitchen_for_school_package_ord.create_at >= ?", req.StartDate) + sess1.And("central_kitchen_for_school_package_ord.pay_at >= ?", req.StartDate) + sess2.And("central_kitchen_for_school_package_ord.pay_at >= ?", req.StartDate) + sess3.And("central_kitchen_for_school_package_ord.pay_at >= ?", req.StartDate) + sess4.And("central_kitchen_for_school_package_ord.pay_at >= ?", req.StartDate) + sess5.And("central_kitchen_for_school_package_ord.pay_at >= ?", req.StartDate) } if req.EndDate != "" { - sess1.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) - sess2.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) - sess3.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) - sess4.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) - sess5.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) + sess1.And("central_kitchen_for_school_package_ord.pay_at <= ?", req.EndDate) + sess2.And("central_kitchen_for_school_package_ord.pay_at <= ?", req.EndDate) + sess3.And("central_kitchen_for_school_package_ord.pay_at <= ?", req.EndDate) + sess4.And("central_kitchen_for_school_package_ord.pay_at <= ?", req.EndDate) + sess5.And("central_kitchen_for_school_package_ord.pay_at <= ?", req.EndDate) } if req.Kind != 0 { sess1.And("central_kitchen_for_school_package_ord.kind = ?", req.Kind)