From 741456b0e814706b55c5ab550b9de6bf7db391d8 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 28 Sep 2022 11:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/routers/repo/user_invitation.go b/routers/repo/user_invitation.go index 75d416346..e63907afe 100644 --- a/routers/repo/user_invitation.go +++ b/routers/repo/user_invitation.go @@ -346,7 +346,7 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, userRecord.SrcUserID) tmp = tmp + 1 - name := "" + name := "已注销" if userMap[userRecord.SrcUserID] != nil { name = userMap[userRecord.SrcUserID].Name } @@ -365,8 +365,9 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { formatTime := "" if userMap[userRecord.SrcUserID] != nil { formatTime = userMap[userRecord.SrcUserID].CreatedUnix.Format("2006-01-02 15:04:05") + formatTime = formatTime[0 : len(formatTime)-3] } - xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, formatTime[0:len(formatTime)-3]) + xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, formatTime) } //设置默认打开的表单 xlsx.SetActiveSheet(index) @@ -404,6 +405,8 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { invi.Name = tmpUser.Name invi.Phone = tmpUser.PhoneNumber invi.CreatedUnix = tmpUser.CreatedUnix + } else { + invi.Name = "已注销" } } } else {