zxc 4 years ago
parent
commit
b228bad86f
  1. 4
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/model/ImportBuildingInfoListener.java
  2. 8
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/model/ImportHouseInfoListener.java
  3. 4
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/model/ImportNeighborHoodInfoListener.java

4
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/model/ImportBuildingInfoListener.java

@ -103,8 +103,10 @@ public class ImportBuildingInfoListener extends AnalysisEventListener<BuildingIn
if (k.equals(r.getAgencyName() + "_" + r.getGridName() + "_" + if (k.equals(r.getAgencyName() + "_" + r.getGridName() + "_" +
r.getNeighborHoodName() + "_" + r.getBuildingName())){ r.getNeighborHoodName() + "_" + r.getBuildingName())){
// 集合里重复的 // 集合里重复的
if (r.getExistStatus()){
nums.add(r.getNum());
}
r.setExistStatus(true); r.setExistStatus(true);
nums.add(r.getNum());
} }
} }
} }

8
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/model/ImportHouseInfoListener.java

@ -130,8 +130,10 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode
for (ImportGeneralDTO r : needInsertList) { for (ImportGeneralDTO r : needInsertList) {
if (k.equals(r.getBuildingUnitId()+"_"+r.getDoorName())){ if (k.equals(r.getBuildingUnitId()+"_"+r.getDoorName())){
// 集合里重复的 // 集合里重复的
if (r.getExistStatus()){
nums.add(r.getNum());
}
r.setExistStatus(true); r.setExistStatus(true);
nums.add(r.getNum());
} }
} }
} }
@ -143,8 +145,10 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode
for (ImportGeneralDTO n : needInsertList) { for (ImportGeneralDTO n : needInsertList) {
if ((n.getBuildingUnitId()+"_"+n.getDoorName()).equals(e)){ if ((n.getBuildingUnitId()+"_"+n.getDoorName()).equals(e)){
// 库里存在的 // 库里存在的
if (n.getExistStatus()){
nums.add(n.getNum());
}
n.setExistStatus(true); n.setExistStatus(true);
nums.add(n.getNum());
} }
} }
}); });

4
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/model/ImportNeighborHoodInfoListener.java

@ -96,8 +96,10 @@ public class ImportNeighborHoodInfoListener extends AnalysisEventListener<Neighb
for (ImportGeneralDTO r : needDisposeList) { for (ImportGeneralDTO r : needDisposeList) {
if (k.equals(r.getAgencyName() + "_" + r.getGridName() + "_" + r.getNeighborHoodName())){ if (k.equals(r.getAgencyName() + "_" + r.getGridName() + "_" + r.getNeighborHoodName())){
// 集合里重复的 // 集合里重复的
if (r.getExistStatus()){
nums.add(r.getNum());
}
r.setExistStatus(true); r.setExistStatus(true);
nums.add(r.getNum());
} }
} }
} }

Loading…
Cancel
Save