From 1b37c8e08f918d961f3e16f25b4c7c2d779e6b7c Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 28 Sep 2022 14:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=87=AA=E5=AE=9A=E4=B9=89=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/user_invitation.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routers/repo/user_invitation.go b/routers/repo/user_invitation.go index 79cb3b48d..a2752a481 100644 --- a/routers/repo/user_invitation.go +++ b/routers/repo/user_invitation.go @@ -125,6 +125,9 @@ func DownloadInvitationDetail(ctx *context.Context) { for _, userRecord := range re { row++ userRecord.Name = userNameMap[userRecord.UserID] + if userRecord.Name == "" { + userRecord.Name = "已注销" + } writeInvitationDetailExcel(row, xlsx, sheetName, userRecord) } indexTotal += PAGE_SIZE @@ -335,7 +338,6 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { if err == nil { for _, tmp := range userList { userMap[tmp.ID] = tmp - log.Info("userMap key=" + fmt.Sprint(tmp.ID)) } } else {