|
@@ -41,16 +41,16 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
private PatrolInspectionAreaService patrolInspectionAreaService;
|
|
|
|
|
|
@Autowired
|
|
|
- private PlanSiteService planSiteService;
|
|
|
+ private PatrolInspectionPlanSiteService planSiteService;
|
|
|
|
|
|
@Autowired
|
|
|
private PatrolInspectionPlanSonService patrolInspectionPlanSonService;
|
|
|
|
|
|
@Autowired
|
|
|
- private PlanScheduleService planScheduleService;
|
|
|
+ private PatrolInspectionPlanScheduleService planScheduleService;
|
|
|
|
|
|
@Autowired
|
|
|
- private PlanSiteSonService planSiteSonService;
|
|
|
+ private PatrolInspectionPlanSiteSonService planSiteSonService;
|
|
|
|
|
|
@Autowired
|
|
|
private PatrolInspectionSpecialRestDayService specialRestDayService;
|
|
@@ -172,7 +172,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
}
|
|
|
//主计划地点添加
|
|
|
for (int i = 0; i < patrolInspectionPlanVo.getSiteArray().length; i++) {
|
|
|
- PlanSite planSite = new PlanSite();
|
|
|
+ PatrolInspectionPlanSite planSite = new PatrolInspectionPlanSite();
|
|
|
planSite.setPlanId(fid);
|
|
|
planSite.setSiteId(patrolInspectionPlanVo.getSiteArray()[i]);
|
|
|
planSiteService.save(planSite);
|
|
@@ -231,7 +231,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionPlanSonService.save(patrolInspectionPlanSon);
|
|
|
Integer zfid = patrolInspectionPlanSon.getId();
|
|
|
for (int k = 0; k < patrolInspectionPlanVo.getSiteArray().length; k++) {
|
|
|
- PlanSiteSon planSiteSon = new PlanSiteSon();
|
|
|
+ PatrolInspectionPlanSiteSon planSiteSon = new PatrolInspectionPlanSiteSon();
|
|
|
planSiteSon.setPlanId(zfid);
|
|
|
planSiteSon.setSiteId(patrolInspectionPlanVo.getSiteArray()[k]);
|
|
|
planSiteSon.setInspectionStatus(1);
|
|
@@ -263,7 +263,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionPlanSonService.save(patrolInspectionPlanSon);
|
|
|
Integer zfid = patrolInspectionPlanSon.getId();
|
|
|
for (int k = 0; k < patrolInspectionPlanVo.getSiteArray().length; k++) {
|
|
|
- PlanSiteSon planSiteSon = new PlanSiteSon();
|
|
|
+ PatrolInspectionPlanSiteSon planSiteSon = new PatrolInspectionPlanSiteSon();
|
|
|
planSiteSon.setPlanId(zfid);
|
|
|
planSiteSon.setSiteId(patrolInspectionPlanVo.getSiteArray()[k]);
|
|
|
planSiteSon.setInspectionStatus(1);
|
|
@@ -320,9 +320,9 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionPlan.setWeekCount(patrolInspectionPlanVo.getWeekCount());
|
|
|
this.updateById(patrolInspectionPlan);
|
|
|
//巡检日程更新
|
|
|
- LambdaQueryWrapper<PlanSchedule> queryWrapper = Wrappers.lambdaQuery();
|
|
|
- queryWrapper.eq(PlanSchedule::getPlanId, patrolInspectionPlanVo.getId());
|
|
|
- List<PlanSchedule> planScheduleList = planScheduleService.list(queryWrapper);
|
|
|
+ LambdaQueryWrapper<PatrolInspectionPlanSchedule> queryWrapper = Wrappers.lambdaQuery();
|
|
|
+ queryWrapper.eq(PatrolInspectionPlanSchedule::getPlanId, patrolInspectionPlanVo.getId());
|
|
|
+ List<PatrolInspectionPlanSchedule> planScheduleList = planScheduleService.list(queryWrapper);
|
|
|
for (int i = 0; i < planScheduleList.size(); i++) {
|
|
|
planScheduleService.removeById(planScheduleList.get(i).getId());
|
|
|
}
|
|
@@ -331,14 +331,14 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
planScheduleService.save(patrolInspectionPlanVo.getPlanScheduleList().get(i));
|
|
|
}
|
|
|
//主计划地点更新
|
|
|
- LambdaQueryWrapper<PlanSite> queryWrapperOne = Wrappers.lambdaQuery();
|
|
|
- queryWrapperOne.eq(PlanSite::getPlanId, patrolInspectionPlanVo.getId());
|
|
|
- List<PlanSite> planSiteList = planSiteService.list(queryWrapperOne);
|
|
|
+ LambdaQueryWrapper<PatrolInspectionPlanSite> queryWrapperOne = Wrappers.lambdaQuery();
|
|
|
+ queryWrapperOne.eq(PatrolInspectionPlanSite::getPlanId, patrolInspectionPlanVo.getId());
|
|
|
+ List<PatrolInspectionPlanSite> planSiteList = planSiteService.list(queryWrapperOne);
|
|
|
for (int i = 0; i < planSiteList.size(); i++) {
|
|
|
planSiteService.removeById(planSiteList.get(i).getId());
|
|
|
}
|
|
|
for (int i = 0; i < patrolInspectionPlanVo.getSiteArray().length; i++) {
|
|
|
- PlanSite planSite = new PlanSite();
|
|
|
+ PatrolInspectionPlanSite planSite = new PatrolInspectionPlanSite();
|
|
|
planSite.setPlanId(patrolInspectionPlanVo.getId());
|
|
|
planSite.setSiteId(patrolInspectionPlanVo.getSiteArray()[i]);
|
|
|
planSiteService.save(planSite);
|
|
@@ -375,9 +375,9 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
queryWrapperTwo.eq(PatrolInspectionPlanSon::getPlanId, patrolInspectionPlanVo.getId());
|
|
|
List<PatrolInspectionPlanSon> patrolInspectionPlanSonList = patrolInspectionPlanSonService.list(queryWrapperTwo);
|
|
|
for (int i = 0; i < patrolInspectionPlanSonList.size(); i++) {
|
|
|
- LambdaQueryWrapper<PlanSiteSon> queryWrapperThree = Wrappers.lambdaQuery();
|
|
|
- queryWrapperThree.eq(PlanSiteSon::getPlanId, patrolInspectionPlanSonList.get(i).getId());
|
|
|
- List<PlanSiteSon> planSiteSonList = planSiteSonService.list(queryWrapperThree);
|
|
|
+ LambdaQueryWrapper<PatrolInspectionPlanSiteSon> queryWrapperThree = Wrappers.lambdaQuery();
|
|
|
+ queryWrapperThree.eq(PatrolInspectionPlanSiteSon::getPlanId, patrolInspectionPlanSonList.get(i).getId());
|
|
|
+ List<PatrolInspectionPlanSiteSon> planSiteSonList = planSiteSonService.list(queryWrapperThree);
|
|
|
for (int j = 0; j < planSiteSonList.size(); j++) {
|
|
|
planSiteSonService.removeById(planSiteSonList.get(j).getId());
|
|
|
}
|
|
@@ -416,7 +416,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionPlanSonService.save(patrolInspectionPlanSon);
|
|
|
Integer zfid = patrolInspectionPlanSon.getId();
|
|
|
for (int k = 0; k < patrolInspectionPlanVo.getSiteArray().length; k++) {
|
|
|
- PlanSiteSon planSiteSon = new PlanSiteSon();
|
|
|
+ PatrolInspectionPlanSiteSon planSiteSon = new PatrolInspectionPlanSiteSon();
|
|
|
planSiteSon.setPlanId(zfid);
|
|
|
planSiteSon.setSiteId(patrolInspectionPlanVo.getSiteArray()[k]);
|
|
|
planSiteSon.setInspectionStatus(1);
|
|
@@ -448,7 +448,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionPlanSonService.save(patrolInspectionPlanSon);
|
|
|
Integer zfid = patrolInspectionPlanSon.getId();
|
|
|
for (int k = 0; k < patrolInspectionPlanVo.getSiteArray().length; k++) {
|
|
|
- PlanSiteSon planSiteSon = new PlanSiteSon();
|
|
|
+ PatrolInspectionPlanSiteSon planSiteSon = new PatrolInspectionPlanSiteSon();
|
|
|
planSiteSon.setPlanId(zfid);
|
|
|
planSiteSon.setSiteId(patrolInspectionPlanVo.getSiteArray()[k]);
|
|
|
planSiteSon.setInspectionStatus(1);
|
|
@@ -543,7 +543,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
queryWrapper.last("limit " + startFate + ","+pageSize);
|
|
|
}
|
|
|
List<PatrolInspectionPlan> patrolInspectionPlanSonList = this.list(queryWrapper);
|
|
|
- List<PlanSchedule> planScheduleList = planScheduleService.list();
|
|
|
+ List<PatrolInspectionPlanSchedule> planScheduleList = planScheduleService.list();
|
|
|
List<PatrolInspectionPersonnelVo> personnelList = patrolInspectionPersonnelService.patrolInspectionPersonnelSelect(areaId);
|
|
|
List<PlanScheduleVo> list = new ArrayList<>();
|
|
|
for (int i = 0; i < planScheduleList.size(); i++) {
|
|
@@ -625,9 +625,9 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
queryWrapper.eq(PatrolInspectionSite::getCreator, SecurityUtils.getUsername());
|
|
|
}
|
|
|
List<PatrolInspectionSite> patrolInspectionSiteList = patrolInspectionSiteService.list();
|
|
|
- LambdaQueryWrapper<PlanSite> queryWrapperOne = Wrappers.lambdaQuery();
|
|
|
- queryWrapperOne.eq(PlanSite::getPlanId, planId);
|
|
|
- List<PlanSite> planSiteList = planSiteService.list(queryWrapperOne);
|
|
|
+ LambdaQueryWrapper<PatrolInspectionPlanSite> queryWrapperOne = Wrappers.lambdaQuery();
|
|
|
+ queryWrapperOne.eq(PatrolInspectionPlanSite::getPlanId, planId);
|
|
|
+ List<PatrolInspectionPlanSite> planSiteList = planSiteService.list(queryWrapperOne);
|
|
|
LambdaQueryWrapper<PatrolInspectionArea> queryWrapperTwo = Wrappers.lambdaQuery();
|
|
|
queryWrapperTwo.eq(PatrolInspectionArea::getEnable, 1)
|
|
|
.eq(PatrolInspectionArea::getTenantId, SecurityUtils.getTenantId());
|