|
@@ -655,14 +655,14 @@ public class PatrolInspectionPlanServiceImpl extends AbstractCrudService<PatrolI
|
|
|
patrolInspectionSiteVo.setSiteName(patrolInspectionSiteList.get(i).getSiteName());
|
|
|
patrolInspectionSiteVo.setAreaId(patrolInspectionSiteList.get(i).getAreaId());
|
|
|
for (int j = 0; j < PatrolInspectionAreaList.size(); j++) {
|
|
|
- if (patrolInspectionSiteList.get(i).getAreaId() == PatrolInspectionAreaList.get(j).getId()) {
|
|
|
+ if (patrolInspectionSiteList.get(i).getAreaId().equals(PatrolInspectionAreaList.get(j).getId())) {
|
|
|
patrolInspectionSiteVo.setAreaName(PatrolInspectionAreaList.get(j).getAreaName());
|
|
|
}
|
|
|
}
|
|
|
patrolInspectionSiteVo.setId(patrolInspectionSiteList.get(i).getId());
|
|
|
patrolInspectionSiteVo.setSiteStatus(false);
|
|
|
for (int j = 0; j < planSiteList.size(); j++) {
|
|
|
- if (patrolInspectionSiteList.get(i).getId() == planSiteList.get(j).getSiteId()) {
|
|
|
+ if (patrolInspectionSiteList.get(i).getId().equals(planSiteList.get(j).getSiteId())) {
|
|
|
patrolInspectionSiteVo.setSiteStatus(true);
|
|
|
}
|
|
|
}
|