Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.5.2
zouap 3 years ago
parent
commit
f648f09827
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/user_data_analysis.go

+ 2
- 2
routers/repo/user_data_analysis.go View File

@@ -575,9 +575,9 @@ func QueryUserStaticDataPage(ctx *context.Context) {
re, count := models.QueryUserStaticDataPage(pageOpts)
sheetName := ctx.Tr("user.static.sheetname")
filename := sheetName + "_" + startDate + "_" + endDate + ".xlsx"
os.Remove(setting.AppDataPath + Excel_File_Path + filename)
go writeFileToDisk(ctx, count, re, filename)
ctx.Redirect("/api/v1/download_user_define_file?filename=" + filename)
ctx.JSON(http.StatusOK, filename)
} else {
mapInterface := make(map[string]interface{})
re, count := models.QueryUserStaticDataPage(pageOpts)


Loading…
Cancel
Save