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 {