|
|
@ -155,8 +155,9 @@ public class BuildingServiceImpl implements BuildingService { |
|
|
|
|
|
|
|
//3.获取网格下的所有小区
|
|
|
|
List<String> gridIdList = customerGridList.stream().map(BaseEpmetEntity::getId).collect(Collectors.toList()); |
|
|
|
LambdaQueryWrapper<IcNeighborHoodEntity> queryWrapper = new QueryWrapper<IcNeighborHoodEntity>().lambda().in(IcNeighborHoodEntity::getGridId, gridIdList); |
|
|
|
queryWrapper.orderByAsc(IcNeighborHoodEntity::getCreatedTime); |
|
|
|
LambdaQueryWrapper<IcNeighborHoodEntity> queryWrapper = new QueryWrapper<IcNeighborHoodEntity>().lambda() |
|
|
|
.in(IcNeighborHoodEntity::getGridId, gridIdList) |
|
|
|
.orderByAsc(IcNeighborHoodEntity::getCreatedTime); |
|
|
|
List<IcNeighborHoodEntity> icNeighborHoodList = icNeighborHoodDao.selectList(queryWrapper); |
|
|
|
if(CollectionUtils.isEmpty(icNeighborHoodList)){ |
|
|
|
agencyList.addAll(gridList); |
|
|
@ -178,7 +179,7 @@ public class BuildingServiceImpl implements BuildingService { |
|
|
|
List<String> neighborHoodIdList = icNeighborHoodList.stream().map(BaseEpmetEntity::getId).collect(Collectors.toList()); |
|
|
|
LambdaQueryWrapper<IcBuildingEntity> buildingQueryWrapper = new QueryWrapper<IcBuildingEntity>().lambda() |
|
|
|
.in(IcBuildingEntity::getNeighborHoodId, neighborHoodIdList) |
|
|
|
.orderByAsc(IcBuildingEntity::getBuildingName); |
|
|
|
.orderByAsc(IcBuildingEntity::getCreatedTime,IcBuildingEntity::getBuildingName); |
|
|
|
List<IcBuildingEntity> icBuildingList = icBuildingDao.selectList(buildingQueryWrapper); |
|
|
|
|
|
|
|
if(CollectionUtils.isEmpty(neighborHoodIdList)){ |
|
|
|