|
@@ -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");
|