Explorar o código

巡检记录导出报错修复

fuyuhchuan hai 10 meses
pai
achega
a7dd07cd3f

+ 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);