|  |  | @ -426,14 +426,11 @@ public class BuildingServiceImpl implements BuildingService { | 
			
		
	
		
			
				
					|  |  |  |         if (null != count && count > 0) { | 
			
		
	
		
			
				
					|  |  |  |             throw new RenException(EpmetErrorCode.BUILDING_NAME_EXITED.getCode(), EpmetErrorCode.BUILDING_NAME_EXITED.getMsg()); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         IcBuildingDTO icBuilding = icBuildingService.get(formDTO.getBuildingId()); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         if (!icBuilding.getNeighborHoodId().equals(formDTO.getNeighborHoodId())) { | 
			
		
	
		
			
				
					|  |  |  |             //更新对应房屋小区id
 | 
			
		
	
		
			
				
					|  |  |  |             List<IcHouseEntity> icHouseEntities = icHouseDao.selectList(new QueryWrapper<IcHouseEntity>().lambda().eq(IcHouseEntity::getBuildingId, formDTO.getBuildingId())); | 
			
		
	
		
			
				
					|  |  |  |             if (!CollectionUtils.isEmpty(icHouseEntities)) { | 
			
		
	
		
			
				
					|  |  |  |                 //
 | 
			
		
	
		
			
				
					|  |  |  |                 throw new RenException(EpmetErrorCode.ORG_EDIT_FAILED.getCode(), "楼栋单元下存在房屋,无法更新"); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  | 
 |