|
|
@@ -181,7 +181,14 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context) { |
|
|
|
if recordsId[returnDay.RecordsId] { |
|
|
|
cache.Del(md.AuditLockKeyForCentralKitchenLockKey) |
|
|
|
_ = session.Rollback() |
|
|
|
e.OutErr(c, e.ERR, "当前含有重复退订餐记录【身份id:"+utils.IntToStr(returnDay.IdentityId)+"】;"+"记录id:【"+v+"】!") |
|
|
|
userIdentityDb := db.UserIdentityDb{} |
|
|
|
userIdentityDb.Set(0) |
|
|
|
identity, err11 := userIdentityDb.GetUserIdentity(returnDay.IdentityId) |
|
|
|
if err11 != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err11.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
e.OutErr(c, e.ERR, "当前含有重复退订餐记录【身份名称:"+identity.Name+"】;"+"记录id:【"+v+"】!") |
|
|
|
return |
|
|
|
} |
|
|
|
recordsId[returnDay.RecordsId] = true |
|
|
|