|
@@ -26,6 +26,7 @@ import com.ruoyi.shipping.excel.*;
|
|
import com.ruoyi.shipping.mapper.*;
|
|
import com.ruoyi.shipping.mapper.*;
|
|
import com.ruoyi.system.mapper.SysDictDataMapper;
|
|
import com.ruoyi.system.mapper.SysDictDataMapper;
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
|
|
|
|
+import org.apache.poi.openxml4j.util.ZipSecureFile;
|
|
import org.apache.poi.ss.usermodel.*;
|
|
import org.apache.poi.ss.usermodel.*;
|
|
import org.apache.poi.ss.util.CellReference;
|
|
import org.apache.poi.ss.util.CellReference;
|
|
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
|
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
|
@@ -594,7 +595,8 @@ public class TCntrnoServiceImpl implements ITCntrnoService {
|
|
List<TCntrno> tCntrno = new ArrayList<>();
|
|
List<TCntrno> tCntrno = new ArrayList<>();
|
|
InputStream inputStream = null;
|
|
InputStream inputStream = null;
|
|
inputStream = file.getInputStream();
|
|
inputStream = file.getInputStream();
|
|
- String originalFilename = file.getOriginalFilename();
|
|
|
|
|
|
+ ZipSecureFile.setMinInflateRatio(-1.0d);
|
|
|
|
+ String originalFilename = file.getOriginalFilename();
|
|
Workbook workbook = null;
|
|
Workbook workbook = null;
|
|
if (originalFilename.endsWith("xls")){
|
|
if (originalFilename.endsWith("xls")){
|
|
workbook = WorkbookFactory.create(inputStream);
|
|
workbook = WorkbookFactory.create(inputStream);
|