|
|
@ -118,6 +118,7 @@ public class ImportNeighborHoodInfoListener extends AnalysisEventListener<Neighb |
|
|
|
// 物业表插入
|
|
|
|
List<String> propertyNames = notExistList.stream().map(m -> m.getPropertyName()).distinct().collect(Collectors.toList()); |
|
|
|
List<String> disposePropertyNames = notExistList.stream().map(m -> m.getPropertyName()).distinct().collect(Collectors.toList()); |
|
|
|
if (!CollectionUtils.isEmpty(propertyNames)){ |
|
|
|
List<String> existPropertyNames = propertyManagementDao.selectExistNames(propertyNames); |
|
|
|
disposePropertyNames.removeAll(existPropertyNames); |
|
|
|
List<IcPropertyManagementEntity> propertyManagementEntities = new ArrayList<>(); |
|
|
@ -142,6 +143,7 @@ public class ImportNeighborHoodInfoListener extends AnalysisEventListener<Neighb |
|
|
|
neighborHoodService.neighborHoodPropertyInsert(icNeighborHoodPropertyEntities); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 清除
|
|
|
|
needDisposeList = new ArrayList<>(); |
|
|
|