Преглед на файлове

巡检记录导出报错修复

fuyuhchuan преди 1 година
родител
ревизия
a7dd07cd3f
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionRecordServiceImpl.java

+ 3 - 1
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionRecordServiceImpl.java

@@ -452,7 +452,9 @@ public class PatrolInspectionRecordServiceImpl extends AbstractCrudService<Patro
             for (int i = 0; i < idArray.length; i++) {
                 listId.add(Integer.parseInt(idArray[i]));
             }
-            queryWrapper.in(PatrolInspectionRecord::getId, listId);
+            if (!listId.isEmpty()){
+                queryWrapper.in(PatrolInspectionRecord::getId, listId);
+            }
         }
         queryWrapper.orderByDesc(PatrolInspectionRecord::getId);
         List<PatrolInspectionRecord> patrolInspectionRecordList = this.list(queryWrapper);