|
@@ -161,7 +161,9 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
|
List<PatrolInspectionPlanSiteSon> planSiteSonList = patrolInspectionPlanSiteSonService.list(queryWrapperTwo);
|
|
|
for (int i = 0; i < planSonList.size(); i++) {
|
|
|
for (int j = 0; j < planSiteSonList.size(); j++) {
|
|
|
- if (planSonList.get(i).getId() == planSiteSonList.get(j).getPlanId()) {
|
|
|
+ int id = planSonList.get(i).getId();
|
|
|
+ int planId = planSiteSonList.get(j).getPlanId();
|
|
|
+ if (id == planId) {
|
|
|
planSonList.get(i).setSiteId(siteList.get(0).getId());
|
|
|
list.add(planSonList.get(i));
|
|
|
}
|