Browse Source

修改下载变更记录模板接口

fengyanjie 3 years ago
parent
commit
8e0dfa18ce

+ 2 - 1
dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/controller/DownloadController.java

@@ -2,6 +2,7 @@ package com.persagy.dmp.rwd.edit.controller;
 
 import com.persagy.dmp.rwd.edit.service.DownloadService;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 import org.apache.poi.ss.usermodel.Workbook;
 import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.slf4j.Logger;
@@ -46,7 +47,7 @@ public class DownloadController {
         String fileName = "批量上传变更记录模板.xlsx";
         InputStream inputStream = new BufferedInputStream(resourceAsStream);
 //        @SuppressWarnings("resource")
-        Workbook workbook = new XSSFWorkbook(inputStream);
+        Workbook workbook = new HSSFWorkbook(inputStream);
 //        String userAgent = req.getHeader("User-Agent");
 //        if (userAgent.contains("MSIE") || userAgent.contains("Trident")) {
 //            fileName = new String(fileName.getBytes("gbk"), "utf-8");