From 2dc67cbe8dc91b0e15543c69019567860d6596b2 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 6 Mar 2024 11:15:39 +0800 Subject: [PATCH] update --- app/admin/hdl/hdl_audit_center.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/admin/hdl/hdl_audit_center.go b/app/admin/hdl/hdl_audit_center.go index 3ce85ea..29adfa4 100644 --- a/app/admin/hdl/hdl_audit_center.go +++ b/app/admin/hdl/hdl_audit_center.go @@ -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