diff --git a/src/main/java/com/cm/population/controller/api/residential/ResidentialController.java b/src/main/java/com/cm/population/controller/api/residential/ResidentialController.java index eff8ace..e8134d6 100644 --- a/src/main/java/com/cm/population/controller/api/residential/ResidentialController.java +++ b/src/main/java/com/cm/population/controller/api/residential/ResidentialController.java @@ -220,7 +220,7 @@ public class ResidentialController extends AbstractController { // 插入楼栋信息,获取小区信息 List residentialDTOList1 = residentialService.list(params); - if(!CollectionUtils.isEmpty(residentialDTOList)) { + if(!CollectionUtils.isEmpty(residentialDTOList1)) { BuildingVO buildingVO = new BuildingVO(); buildingVO.setStreetName(data.getStreet()); buildingVO.setCommunityName(data.getCommunity());