修改bug-虚拟清单导入数组越界问题

This commit is contained in:
gaosong
2022-09-21 21:13:53 +08:00
parent a87317f920
commit 1c3c1595a3
@@ -1037,6 +1037,8 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
String key = "";
if (row != null && !isBlank) {
int columNos = headerRow.getLastCellNum();// 表头总共的列数
//预防空格子报错
columNos = columNos > 24 ? 24 : columNos;
Map<String, String> rowList = new LinkedHashMap<>();
for (int j = 0; j < columNos; j++) {
Cell cell = row.getCell(j);