|
@@ -189,15 +189,17 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
throw new BusinessException("无效地点,请联系管理人员添加点位");
|
|
throw new BusinessException("无效地点,请联系管理人员添加点位");
|
|
}
|
|
}
|
|
List<PatrolInspectionRecordPicture> recordPictureList = new ArrayList<>();
|
|
List<PatrolInspectionRecordPicture> recordPictureList = new ArrayList<>();
|
|
|
|
+ List<PatrolInspectionRecord> recordList = new ArrayList<>();
|
|
if (planSonId != null && planSonId != 0) {
|
|
if (planSonId != null && planSonId != 0) {
|
|
LambdaQueryWrapper<PatrolInspectionRecord> query = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<PatrolInspectionRecord> query = Wrappers.lambdaQuery();
|
|
query.eq(PatrolInspectionRecord::getSiteId, siteId)
|
|
query.eq(PatrolInspectionRecord::getSiteId, siteId)
|
|
.eq(PatrolInspectionRecord::getPlanSonId, planSonId);
|
|
.eq(PatrolInspectionRecord::getPlanSonId, planSonId);
|
|
- List<PatrolInspectionRecord> recordList = patrolInspectionRecordMapper.selectList(query);
|
|
|
|
|
|
+ recordList = patrolInspectionRecordMapper.selectList(query);
|
|
LambdaQueryWrapper<PatrolInspectionRecordPicture> queryOne = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<PatrolInspectionRecordPicture> queryOne = Wrappers.lambdaQuery();
|
|
queryOne.eq(PatrolInspectionRecordPicture::getRecordId, recordList.get(0).getId());
|
|
queryOne.eq(PatrolInspectionRecordPicture::getRecordId, recordList.get(0).getId());
|
|
recordPictureList = patrolInspectionRecordPictureService.list(queryOne);
|
|
recordPictureList = patrolInspectionRecordPictureService.list(queryOne);
|
|
}
|
|
}
|
|
|
|
+ siteList.get(0).setRemarks(recordList.get(0).getRemarks());
|
|
siteList.get(0).setRecordPictureList(recordPictureList);
|
|
siteList.get(0).setRecordPictureList(recordPictureList);
|
|
List<PatrolInspectionContentVo> contentList = this.contentList(siteList.get(0).getId());
|
|
List<PatrolInspectionContentVo> contentList = this.contentList(siteList.get(0).getId());
|
|
siteList.get(0).setContentCount(contentList.size());
|
|
siteList.get(0).setContentCount(contentList.size());
|