Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
3d82531eee
1 changed files with 11 additions and 11 deletions
  1. +11
    -11
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 11
- 11
app/admin/svc/order/svc_central_kitchen_for_school_order.go View File

@@ -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
//}

}

//调用支付宝进行退款


Loading…
Cancel
Save