From 3d82531eee352c52694f363722c1e28f8df53a82 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sun, 8 Oct 2023 19:41:57 +0800 Subject: [PATCH] update --- .../svc_central_kitchen_for_school_order.go | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 e568c1f..1832b2b 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 @@ -220,23 +220,23 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder _ = session.Rollback() return err5 } + + updateAck1, err4 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state") + if err4 != nil { + _ = session.Rollback() + return err4 + } + if updateAck1 <= 0 { + _ = session.Rollback() + err = errors.New("更新退款就餐记录状态失败2") + return + } } //else { // returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditReject // userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForWait //} - //updateAck1, err4 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state") - //if err4 != nil { - // _ = session.Rollback() - // return err4 - //} - //if updateAck1 <= 0 { - // _ = session.Rollback() - // err = errors.New("更新退款就餐记录状态失败2") - // return - //} - } //调用支付宝进行退款