guarantee-lsq преди 2 години
родител
ревизия
1c64f002cc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      platform-office/src/main/java/com/platform/office/poi/excel/imports/ExcelImportServer.java

+ 1 - 1
platform-office/src/main/java/com/platform/office/poi/excel/imports/ExcelImportServer.java

@@ -166,7 +166,7 @@ public class ExcelImportServer extends ImportBaseService {
         while (rows.hasNext() && (row == null || sheet.getLastRowNum() - row.getRowNum() > params.getLastOfInvalidRow())) {
             row = rows.next();
             // 判断是集合元素还是不是集合元素,如果是就继续加入这个集合,不是就创建新的对象
-            if ((row.getCell(params.getKeyIndex()) == null || StringUtils.isEmpty(getKeyValue(row.getCell(params.getKeyIndex())))) && object != null) {
+            if ((row.getCell(params.getKeyIndex()) == null || StringUtils.isNotEmpty(getKeyValue(row.getCell(params.getKeyIndex())))) && object != null) {
                 for (ExcelCollectionParams param : excelCollection) {
                     addListContinue(object, param, row, titlemap, targetId, pictures, params);
                 }