|
|
|
@@ -95,7 +95,7 @@ func queryUserDataPage(ctx *context.Context, tableName string, queryObj interfac |
|
|
|
xlsx.SetCellValue(sheetName, "P"+rows, formatTime[0:len(formatTime)-3]) |
|
|
|
|
|
|
|
xlsx.SetCellValue(sheetName, "Q"+rows, userRecord.CloudBrainTaskNum) |
|
|
|
xlsx.SetCellValue(sheetName, "R"+rows, userRecord.CloudBrainRunTime) |
|
|
|
xlsx.SetCellValue(sheetName, "R"+rows, fmt.Sprintf("%.2f", float64(userRecord.CloudBrainRunTime)/3600)) |
|
|
|
xlsx.SetCellValue(sheetName, "S"+rows, userRecord.CommitDatasetNum) |
|
|
|
xlsx.SetCellValue(sheetName, "T"+rows, userRecord.CommitModelCount) |
|
|
|
xlsx.SetCellValue(sheetName, "U"+rows, fmt.Sprintf("%.2f", userRecord.UserIndex)) |
|
|
|
@@ -232,7 +232,12 @@ func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
|
"N1": ctx.Tr("user.static.createrepocount"), |
|
|
|
"O1": ctx.Tr("user.static.openiindex"), |
|
|
|
"P1": ctx.Tr("user.static.registdate"), |
|
|
|
"Q1": ctx.Tr("user.static.countdate"), |
|
|
|
"Q1": ctx.Tr("user.static.CloudBrainTaskNum"), |
|
|
|
"R1": ctx.Tr("user.static.CloudBrainRunTime"), |
|
|
|
"S1": ctx.Tr("user.static.CommitDatasetNum"), |
|
|
|
"T1": ctx.Tr("user.static.CommitModelCount"), |
|
|
|
"U1": ctx.Tr("user.static.UserIndex"), |
|
|
|
"V1": ctx.Tr("user.static.countdate"), |
|
|
|
} |
|
|
|
for k, v := range dataHeader { |
|
|
|
//设置单元格的值 |
|
|
|
@@ -260,9 +265,13 @@ func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
|
|
|
|
|
formatTime := userRecord.RegistDate.Format("2006-01-02 15:04:05") |
|
|
|
xlsx.SetCellValue(sheetName, "P"+rows, formatTime[0:len(formatTime)-3]) |
|
|
|
|
|
|
|
xlsx.SetCellValue(sheetName, "Q"+rows, userRecord.CloudBrainTaskNum) |
|
|
|
xlsx.SetCellValue(sheetName, "R"+rows, fmt.Sprintf("%.2f", float64(userRecord.CloudBrainRunTime)/3600)) |
|
|
|
xlsx.SetCellValue(sheetName, "S"+rows, userRecord.CommitDatasetNum) |
|
|
|
xlsx.SetCellValue(sheetName, "T"+rows, userRecord.CommitModelCount) |
|
|
|
xlsx.SetCellValue(sheetName, "U"+rows, fmt.Sprintf("%.2f", userRecord.UserIndex)) |
|
|
|
formatTime = userRecord.DataDate |
|
|
|
xlsx.SetCellValue(sheetName, "Q"+rows, formatTime+" 00:01") |
|
|
|
xlsx.SetCellValue(sheetName, "V"+rows, formatTime) |
|
|
|
} |
|
|
|
|
|
|
|
//设置默认打开的表单 |
|
|
|
|