From 2a3890f2e6ae0cdae18133aa9faa32805815c8ec Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 27 Sep 2023 11:34:26 +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 4722a47..cba5f31 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 @@ -773,7 +773,7 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis var m []*db.CentralKitchenForSchoolPackageOrdForReserveWithUserIdentity count, err = sess. Join("LEFT", "central_kitchen_for_school_package_ord", "central_kitchen_for_school_package_ord_for_reserve.out_trade_no = central_kitchen_for_school_package_ord.out_trade_no"). - Join("LEFT", "central_kitchen_for_school_user_with_day", "central_kitchen_for_school_user_with_day.ord_no = central_kitchen_for_school_package_ord_for_reserve.out_trade_no"). + Join("LEFT", "central_kitchen_for_school_user_with_day", "central_kitchen_for_school_user_with_day.ord_no = central_kitchen_for_school_package_ord_for_reserve.out_trade_no and central_kitchen_for_school_user_with_day.kind = central_kitchen_for_school_package_ord_for_reserve.kind"). Join("LEFT", "user_identity", "central_kitchen_for_school_package_ord_for_reserve.user_identity_id = user_identity.id"). Join("LEFT", "enterprise", "enterprise.id = central_kitchen_for_school_package_ord_for_reserve.enterprise_id"). Join("LEFT", "user", "user.id = user_identity.uid").