|
|
|
@@ -60,7 +60,13 @@ func writeUserMetricsExcel(row int, xlsx *excelize.File, sheetName string, userM |
|
|
|
xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, "") |
|
|
|
tmp = tmp + 1 |
|
|
|
t := userMetrics.ActivateIndex * 100 |
|
|
|
xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, fmt.Sprintf("%.2f", t)+"%") |
|
|
|
value := "-" |
|
|
|
if t < 100 { |
|
|
|
value = fmt.Sprintf("%.2f", t) + "%" |
|
|
|
} else { |
|
|
|
value = "100%" |
|
|
|
} |
|
|
|
xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, value) |
|
|
|
tmp = tmp + 1 |
|
|
|
xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, userMetrics.TotalUser) |
|
|
|
tmp = tmp + 1 |
|
|
|
|