From aa85a731c9c0e07db32752832af6174313f575f5 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 6 Sep 2024 15:35:39 +0800 Subject: [PATCH] 1 --- app/admin/svc/order/svc_central_kitchen_for_school_order.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/order/svc_central_kitchen_for_school_order.go b/app/admin/svc/order/svc_central_kitchen_for_school_order.go index 9b2c9b2..30a27a6 100644 --- a/app/admin/svc/order/svc_central_kitchen_for_school_order.go +++ b/app/admin/svc/order/svc_central_kitchen_for_school_order.go @@ -248,7 +248,8 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch } if userWithDay == nil { utils.FilePutContents("CentralKitchenForSchoolOrderRefundAudit_NOT_FOUND", utils.SerializeStr(returnDay)) - continue + _ = session.Rollback() + return errors.New("未查询到对应预定记录") } //if userWithDay.State == enum.CentralKitchenForSchoolUserWithDayStateForCancel && returnDay.State != enum.CentralKitchenForSchoolUserRefundDayStateForRefundErr { // //TODO::当前订餐记录,已退款了