fix: 78216
企标--导入--导入多行数据没有数据的行报错了
This commit is contained in:
@@ -95,6 +95,17 @@ public class ImportUtil {
|
|||||||
StringBuilder errMsg = new StringBuilder("第" + line + "行");
|
StringBuilder errMsg = new StringBuilder("第" + line + "行");
|
||||||
Map<String, Object> parameterMap = new HashMap<>();
|
Map<String, Object> parameterMap = new HashMap<>();
|
||||||
boolean standardValidFlag = false;
|
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++) {
|
for (int j = 0; j < headerList.size(); j++) {
|
||||||
String row = CellReference.convertNumToColString(j);
|
String row = CellReference.convertNumToColString(j);
|
||||||
// 获取当前单元格
|
// 获取当前单元格
|
||||||
|
|||||||
Reference in New Issue
Block a user