浏览代码

update

tmp
DengBiao 10 个月前
父节点
当前提交
12056eb492
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      app/admin/hdl/hdl_audit_center.go

+ 7
- 0
app/admin/hdl/hdl_audit_center.go 查看文件

@@ -128,6 +128,7 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context) {
centralKitchenForSchoolUserRefundDayDb.Set(0)
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
var recordsId = map[int]bool{}
for _, v := range req.Ids {
returnDay, err1 := centralKitchenForSchoolUserRefundDayDb.GetCentralKitchenForSchoolUserRefundDay(utils.StrToInt(v))
if err1 != nil {
@@ -139,6 +140,12 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context) {
e.OutErr(c, e.ERR, "请勿重复审核申请单!")
return
}
if recordsId[returnDay.RecordsId] {
_ = session.Rollback()
e.OutErr(c, e.ERR, "当前含有重复退订餐记录!")
return
}
recordsId[returnDay.RecordsId] = true

//1、更新状态
if req.State == 1 {


正在加载...
取消
保存