修改案例题模板下载和打包压缩

master
xiaoCJ 8 months ago
parent e7508946d5
commit ede9a61d9f

@ -164,7 +164,7 @@ public class TopicResourceController {
@ApiOperation("客观题导入模板下载")
@AnonymousAccess
public void downloadResource(HttpServletResponse response) {
fileUtil.download(response, "客观题导入模板.xlsx", "/module");
fileUtil.download(response, "客观题导入模板.xlsx", "/客观题导入模板.xlsx");
}

@ -242,7 +242,7 @@ public class ObjectiveApi {
@ApiOperation("客观题导入模板下载")
@AnonymousAccess
public void downloadResource(HttpServletResponse response) {
fileUtil.download(response, "客观题导入模板.xlsx", filePath);
fileUtil.download(response, "客观题导入模板.xlsx", "/客观题导入模板.xlsx");
}
/**

@ -110,6 +110,7 @@ public class StuCaseController {
CompressUtil.compress(filePaths, zipPath, false);
File pocZipFile = new File(zipPath);
CompressUtil.downloadZip(response, zipName, pocZipFile);
pocZipFile.delete();
}
}

Loading…
Cancel
Save