|
|
@@ -73,19 +73,20 @@ func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
"A1": ctx.Tr("user.static.id"), |
|
|
"A1": ctx.Tr("user.static.id"), |
|
|
"B1": ctx.Tr("user.static.name"), |
|
|
"B1": ctx.Tr("user.static.name"), |
|
|
"C1": ctx.Tr("user.static.codemergecount"), |
|
|
"C1": ctx.Tr("user.static.codemergecount"), |
|
|
"D1": ctx.Tr("user.static.issuecount"), |
|
|
|
|
|
"E1": ctx.Tr("user.static.commentcount"), |
|
|
|
|
|
"F1": ctx.Tr("user.static.focusrepocount"), |
|
|
|
|
|
"G1": ctx.Tr("user.static.starrepocount"), |
|
|
|
|
|
"H1": ctx.Tr("user.static.logincount"), |
|
|
|
|
|
"I1": ctx.Tr("user.static.watchedcount"), |
|
|
|
|
|
"J1": ctx.Tr("user.static.commitcodesize"), |
|
|
|
|
|
"K1": ctx.Tr("user.static.solveissuecount"), |
|
|
|
|
|
"L1": ctx.Tr("user.static.encyclopediascount"), |
|
|
|
|
|
"M1": ctx.Tr("user.static.createrepocount"), |
|
|
|
|
|
"N1": ctx.Tr("user.static.openiindex"), |
|
|
|
|
|
"O1": ctx.Tr("user.static.registdate"), |
|
|
|
|
|
"P1": ctx.Tr("user.static.countdate"), |
|
|
|
|
|
|
|
|
"D1": ctx.Tr("user.static.commitcount"), |
|
|
|
|
|
"E1": ctx.Tr("user.static.issuecount"), |
|
|
|
|
|
"F1": ctx.Tr("user.static.commentcount"), |
|
|
|
|
|
"G1": ctx.Tr("user.static.focusrepocount"), |
|
|
|
|
|
"H1": ctx.Tr("user.static.starrepocount"), |
|
|
|
|
|
"I1": ctx.Tr("user.static.logincount"), |
|
|
|
|
|
"J1": ctx.Tr("user.static.watchedcount"), |
|
|
|
|
|
"K1": ctx.Tr("user.static.commitcodesize"), |
|
|
|
|
|
"L1": ctx.Tr("user.static.solveissuecount"), |
|
|
|
|
|
"M1": ctx.Tr("user.static.encyclopediascount"), |
|
|
|
|
|
"N1": ctx.Tr("user.static.createrepocount"), |
|
|
|
|
|
"O1": ctx.Tr("user.static.openiindex"), |
|
|
|
|
|
"P1": ctx.Tr("user.static.registdate"), |
|
|
|
|
|
"Q1": ctx.Tr("user.static.countdate"), |
|
|
} |
|
|
} |
|
|
for k, v := range dataHeader { |
|
|
for k, v := range dataHeader { |
|
|
//设置单元格的值 |
|
|
//设置单元格的值 |
|
|
@@ -98,19 +99,20 @@ func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
xlsx.SetCellValue(sheetName, "A"+rows, userRecord.ID) |
|
|
xlsx.SetCellValue(sheetName, "A"+rows, userRecord.ID) |
|
|
xlsx.SetCellValue(sheetName, "B"+rows, userRecord.Name) |
|
|
xlsx.SetCellValue(sheetName, "B"+rows, userRecord.Name) |
|
|
xlsx.SetCellValue(sheetName, "C"+rows, userRecord.CodeMergeCount) |
|
|
xlsx.SetCellValue(sheetName, "C"+rows, userRecord.CodeMergeCount) |
|
|
xlsx.SetCellValue(sheetName, "D"+rows, userRecord.IssueCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "E"+rows, userRecord.CommentCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "F"+rows, userRecord.FocusRepoCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "G"+rows, userRecord.StarRepoCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "H"+rows, userRecord.LoginCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "I"+rows, userRecord.WatchedCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "J"+rows, userRecord.CommitCodeSize) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "K"+rows, userRecord.SolveIssueCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "L"+rows, userRecord.EncyclopediasCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "M"+rows, userRecord.CreateRepoCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "N"+rows, userRecord.OpenIIndex) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "O"+rows, userRecord.RegistDate.Format("2006-01-02")) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "P"+rows, time.Unix(userRecord.CountDate, 0).Format("2006-01-02")) |
|
|
|
|
|
|
|
|
xlsx.SetCellValue(sheetName, "D"+rows, userRecord.CommitCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "E"+rows, userRecord.IssueCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "F"+rows, userRecord.CommentCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "G"+rows, userRecord.FocusRepoCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "H"+rows, userRecord.StarRepoCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "I"+rows, userRecord.LoginCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "J"+rows, userRecord.WatchedCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "K"+rows, userRecord.CommitCodeSize) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "L"+rows, userRecord.SolveIssueCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "M"+rows, userRecord.EncyclopediasCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "N"+rows, userRecord.CreateRepoCount) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "O"+rows, userRecord.OpenIIndex) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "P"+rows, userRecord.RegistDate.Format("2006-01-02")) |
|
|
|
|
|
xlsx.SetCellValue(sheetName, "Q"+rows, time.Unix(userRecord.CountDate, 0).Format("2006-01-02")) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//设置默认打开的表单 |
|
|
//设置默认打开的表单 |
|
|
|