From 812ac8818048ce05ec553578cf20979455787320 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 27 Sep 2023 11:18:00 +0800 Subject: [PATCH] update --- .../svc/enterprise_manage/svc_central_kitchen_for_school.go | 3 +-- 1 file changed, 1 insertion(+), 2 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 c663fb6..4722a47 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 @@ -739,8 +739,7 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis } sess := db.Db. - Where("central_kitchen_for_school_user_with_day.state = ?", enum2.CentralKitchenForSchoolUserWithDayStateForWait). - Or("central_kitchen_for_school_user_with_day.state = ?", enum2.CentralKitchenForSchoolUserWithDayStateForAlready). + In("central_kitchen_for_school_user_with_day.state", []int{enum2.CentralKitchenForSchoolUserWithDayStateForWait, enum2.CentralKitchenForSchoolUserWithDayStateForAlready}). Desc("central_kitchen_for_school_package_ord_for_reserve.id") if req.EnterpriseId != 0 { sess.And("central_kitchen_for_school_package_ord_for_reserve.enterprise_id =?", req.EnterpriseId)