From d384a67c379f8139356b278818da6e51676344a1 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 16 Feb 2024 19:54:11 +0800 Subject: [PATCH] update --- app/customer/svc/order/svc_central_kitchen_for_school_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 33aa81f..0b6be97 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 @@ -14,7 +14,7 @@ import ( ) func OrderList(req md.CentralKitchenForSchoolOrderListReq, platform string) (m []model.CentralKitchenForSchoolPackageOrd, total int64, err error) { - sess := db.Db.Desc("id").Where("user_identity_id =?", req.UserIdentityId).Limit(req.Limit, (req.Page-1)*req.Limit) + sess := db.Db.Desc("id").Where("user_identity_id =?", req.UserIdentityId).And("state != 2").Limit(req.Limit, (req.Page-1)*req.Limit) if req.StartDate != "" && req.EndDate != "" { sess.And("create_at >= ? And create_at <= ?", req.StartDate, req.EndDate) }