fix: 78216

企标--导入--导入多行数据没有数据的行报错了
This commit is contained in:
2023-11-07 11:26:03 +08:00
parent 8b9647d257
commit d80c2b3c31
@@ -95,6 +95,17 @@ public class ImportUtil {
StringBuilder errMsg = new StringBuilder("" + line + "");
Map<String, Object> parameterMap = new HashMap<>();
boolean standardValidFlag = false;
// 跳过空行
boolean emptyRow = true;
for (int j = 0; j < headerList.size(); j++) {
// 获取当前单元格
Cell cell = sheet.getRow(i).getCell(j);
if (cell != null && !"".equals(cell.toString().trim())) {
emptyRow = false;
break;
}
}
if (emptyRow) continue;
for (int j = 0; j < headerList.size(); j++) {
String row = CellReference.convertNumToColString(j);
// 获取当前单元格