|
|
@ -97,11 +97,13 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode |
|
|
|
} |
|
|
|
|
|
|
|
public void finalDispose(){ |
|
|
|
if (CollectionUtils.isEmpty(needDisposeList)){ |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!CollectionUtils.isEmpty(needDisposeList)){ |
|
|
|
List<ImportGeneralDTO> importInfo = neighborHoodService.getImportInfo(formDTO, needDisposeList); |
|
|
|
needInsertList.addAll(importInfo); |
|
|
|
} |
|
|
|
if (CollectionUtils.isEmpty(needInsertList)){ |
|
|
|
return; |
|
|
|
} |
|
|
|
Map<String, Long> collect = needInsertList.stream().collect(Collectors.groupingBy(n -> n.getBuildingUnitId() + "_" + n.getDoorName(), Collectors.counting())); |
|
|
|
collect.forEach((k,v) -> { |
|
|
|
if (Integer.valueOf(v.toString()).compareTo(1) > 0){ |
|
|
|