fix: 80292 年度制修订计划-各部所联络人 填写/下发任务--列表导入模板Excel打开有损坏提示
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user