From 0371e87bf92f126b923013e2e6760fa1aec2e239 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sun, 8 Oct 2023 19:50:41 +0800 Subject: [PATCH] update --- .../svc/enterprise_manage/svc_central_kitchen_for_school.go | 2 +- 1 file changed, 1 insertion(+), 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 fb7d9c5..9372bbd 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 @@ -855,7 +855,7 @@ func CentralKitchenForSchoolOrdRefund(req md.CentralKitchenForSchoolOrdRefundReq var m []model.CentralKitchenForSchoolUserWithDay centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{} centralKitchenForSchoolUserWithDayDb.Set(0) - err = centralKitchenForSchoolUserWithDayDb.Db.In("id", req.Ids).Find(&m) + err = centralKitchenForSchoolUserWithDayDb.Db.Where("state =?", enum2.CentralKitchenForSchoolUserWithDayStateForWait).In("id", req.Ids).Find(&m) if err != nil { return err }