|
@@ -111,7 +111,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionAreaVo.setSiteCount(0);
|
|
|
patrolInspectionAreaVo.setPlanCount(0);
|
|
|
for (int j = 0; j < dataCountVoList.size(); j++) {
|
|
|
- if (patrolInspectionAreaList.get(i).getId() == dataCountVoList.get(j).getId()) {
|
|
|
+ if (patrolInspectionAreaList.get(i).getId().equals(dataCountVoList.get(j).getId())) {
|
|
|
patrolInspectionAreaVo.setPlanCount(dataCountVoList.get(j).getListCount());
|
|
|
}
|
|
|
}
|
|
@@ -663,7 +663,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
planScheduleVo.setPersonnelId(planScheduleList.get(i).getPersonnelId());
|
|
|
planScheduleVo.setPlanId(planScheduleList.get(i).getPlanId());
|
|
|
for (int j = 0; j < personnelList.size(); j++) {
|
|
|
- if (planScheduleList.get(i).getPersonnelId() == personnelList.get(j).getId()) {
|
|
|
+ if (planScheduleList.get(i).getPersonnelId().equals(personnelList.get(j).getId())) {
|
|
|
planScheduleVo.setPersonnelName(personnelList.get(j).getName());
|
|
|
}
|
|
|
}
|
|
@@ -693,7 +693,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
if (planType == 1) {
|
|
|
List<PlanScheduleVo> list2 = new ArrayList<>();
|
|
|
for (int j = 0; j < list.size(); j++) {
|
|
|
- if (patrolInspectionPlanSonList.get(i).getId() == list.get(j).getPlanId()) {
|
|
|
+ if (patrolInspectionPlanSonList.get(i).getId().equals(list.get(j).getPlanId())) {
|
|
|
list.get(j).setWeekOne(patrolInspectionPlanSonList.get(i).getRestDay().contains("星期一") ? true : false);
|
|
|
list.get(j).setWeekTwo(patrolInspectionPlanSonList.get(i).getRestDay().contains("星期二") ? true : false);
|
|
|
list.get(j).setWeekThree(patrolInspectionPlanSonList.get(i).getRestDay().contains("星期三") ? true : false);
|
|
@@ -707,7 +707,7 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionPlanDataVo.setChildrenList(list2);
|
|
|
} else if (planType == 2) {
|
|
|
for (int j = 0; j < list.size(); j++) {
|
|
|
- if (patrolInspectionPlanSonList.get(i).getId() == list.get(j).getPlanId()) {
|
|
|
+ if (patrolInspectionPlanSonList.get(i).getId().equals(list.get(j).getPlanId())) {
|
|
|
patrolInspectionPlanDataVo.setPersonneName(list.get(j).getPersonnelName());
|
|
|
patrolInspectionPlanDataVo.setPersonneId(list.get(j).getPersonnelId());
|
|
|
}
|