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::当前订餐记录,已退款了