Browse Source

修复存在无效行,且表格无有效数据导入BUG

4.1.3.A
xiyoufang 8 years ago
parent
commit
26fb9e7699
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      easypoi-base/src/main/java/cn/afterturn/easypoi/excel/imports/ExcelImportServer.java

+ 4
- 0
easypoi-base/src/main/java/cn/afterturn/easypoi/excel/imports/ExcelImportServer.java View File

@@ -192,6 +192,10 @@ public class ExcelImportServer extends ImportBaseService {
break;
}
row = rows.next();
// Fix 如果row为无效行时候跳出
if(sheet.getLastRowNum() - row.getRowNum() < params.getLastOfInvalidRow() ){
break;
}
// 判断是集合元素还是不是集合元素,如果是就继续加入这个集合,不是就创建新的对象
// keyIndex 如果为空就不处理,仍然处理这一行
if (params.getKeyIndex() != null


Loading…
Cancel
Save