فهرست منبع

Merge branch 'han' of uskycloud/usky-modules into server-165

hanzhengyi 1 سال پیش
والد
کامیت
8f33c636a4

+ 4 - 6
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionPlanSonServiceImpl.java

@@ -422,12 +422,10 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
                     recordIdList.add(recordList.get(i).getId());
                 }
                 List<PatrolInspectionSite> list1 = new ArrayList<>();
-                if (id != null && id != 0) {
-                    LambdaQueryWrapper<PatrolInspectionSite> queryWrapper1 = Wrappers.lambdaQuery();
-                    queryWrapper1.select(PatrolInspectionSite::getId, PatrolInspectionSite::getPictureUrl)
-                            .eq(PatrolInspectionSite::getId, recordList.get(0).getSiteId());
-                    list1 = patrolInspectionSiteService.list(queryWrapper1);
-                }
+                LambdaQueryWrapper<PatrolInspectionSite> queryWrapper1 = Wrappers.lambdaQuery();
+                queryWrapper1.select(PatrolInspectionSite::getId, PatrolInspectionSite::getPictureUrl)
+                        .eq(PatrolInspectionSite::getId, recordList.get(0).getSiteId());
+                list1 = patrolInspectionSiteService.list(queryWrapper1);
 
                 LambdaQueryWrapper<PatrolInspectionRecordPicture> queryOne = Wrappers.lambdaQuery();
                 queryOne.in(PatrolInspectionRecordPicture::getRecordId, recordIdList);