|
@@ -376,7 +376,7 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<PatrolInspectionRecordVo> recordList(String currentDate, String sort, Integer id) {
|
|
|
+ public List<PatrolInspectionRecordVo> recordList(String currentDate, String sort, Integer id,Integer planSonId,Integer siteId) {
|
|
|
List<Integer> personnelIdList = this.getpersonId();
|
|
|
LambdaQueryWrapper<PatrolInspectionPlanSchedule> queryWrapper = Wrappers.lambdaQuery();
|
|
|
queryWrapper.select(PatrolInspectionPlanSchedule::getPlanId)
|
|
@@ -395,6 +395,12 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
|
if (id != null && id != 0) {
|
|
|
queryWrapperOne.eq(PatrolInspectionRecord::getId, id);
|
|
|
}
|
|
|
+ if (planSonId != null && planSonId != 0) {
|
|
|
+ queryWrapperOne.eq(PatrolInspectionRecord::getPlanSonId, planSonId);
|
|
|
+ }
|
|
|
+ if (siteId != null && siteId != 0) {
|
|
|
+ queryWrapperOne.eq(PatrolInspectionRecord::getSiteId, siteId);
|
|
|
+ }
|
|
|
if (sort.equals("ASC")) {
|
|
|
queryWrapperOne.orderByAsc(PatrolInspectionRecord::getId);
|
|
|
} else {
|
|
@@ -517,6 +523,8 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
|
if (contentOptionList.get(i).getId() == recordOptionList.get(j).getContentOptionId()) {
|
|
|
contentOptionVo.setSelectStatus(true);
|
|
|
contentOptionVo.setRemarks(recordOptionList.get(j).getRemarks());
|
|
|
+ contentOptionVo.setContent(recordOptionList.get(i).getContent());
|
|
|
+ contentOptionVo.setContentId(recordOptionList.get(i).getContentId());
|
|
|
}
|
|
|
}
|
|
|
contentOptionVoList.add(contentOptionVo);
|