fix: 80292 年度制修订计划-各部所联络人 填写/下发任务--列表导入模板Excel打开有损坏提示

This commit is contained in:
2024-01-05 09:58:26 +08:00
parent 4c984e9532
commit 3ff78d041e
6 changed files with 4 additions and 4 deletions
@@ -153,9 +153,9 @@ public class ESAnnualInitController {
@AutoLog(value = "企标年度制修订标准化发起流程-导入模板下载")
public void templateDownload(HttpServletResponse response) {
try {
ClassPathResource resource = new ClassPathResource("excelTemplate/es-annual-init.xlsx");
ClassPathResource resource = new ClassPathResource("excelTemplate/年度制修订计划(标准化发起)导入模板.xls");
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=es-annual-init.xlsx");
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=年度制修订计划(标准化发起)导入模板.xls");
try (InputStream in = resource.getInputStream(); OutputStream out = response.getOutputStream()) {
IOUtils.copy(in, out);
@@ -65,9 +65,9 @@ public class ESAnnualReportController {
@AutoLog(value = "企标年度制修订主动上报流程-导入模板下载")
public void templateDownload(HttpServletResponse response) {
try {
ClassPathResource resource = new ClassPathResource("excelTemplate/es-annual-report.xlsx");
ClassPathResource resource = new ClassPathResource("excelTemplate/年度制修订计划(各部门主动上报)导入模板.xls");
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=es-annual-report.xlsx");
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=年度制修订计划(各部门主动上报)导入模板.xls");
try (InputStream in = resource.getInputStream(); OutputStream out = response.getOutputStream()) {
IOUtils.copy(in, out);