|  |  | @ -214,15 +214,15 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     public List<BuildingResultDTO> getNeighborhoodList(TokenDto tokenDto, IcNeighborHoodDTO dto) { | 
			
		
	
		
			
				
					|  |  |  |         dto.setCustomerId(tokenDto.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |         if (StringUtils.isBlank(dto.getAgencyId()) && StringUtils.isEmpty(dto.getGridId())) { | 
			
		
	
		
			
				
					|  |  |  |             log.info("agencyId与gridId都为空时,默认查询当前工作人员所属组织下的小区"); | 
			
		
	
		
			
				
					|  |  |  |             CustomerStaffInfoCacheResult result= CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), tokenDto.getUserId()); | 
			
		
	
		
			
				
					|  |  |  |             if (null == result || StringUtils.isBlank(result.getAgencyId())) { | 
			
		
	
		
			
				
					|  |  |  |                 log.error(String.format("staffId:%s,工作人员缓存信息查询异常", tokenDto.getUserId())); | 
			
		
	
		
			
				
					|  |  |  |                 return Collections.emptyList(); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |             dto.setAgencyId(result.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | //        if (StringUtils.isBlank(dto.getAgencyId()) && StringUtils.isEmpty(dto.getGridId())) {
 | 
			
		
	
		
			
				
					|  |  |  | //            log.info("agencyId与gridId都为空时,默认查询当前工作人员所属组织下的小区");
 | 
			
		
	
		
			
				
					|  |  |  | //            CustomerStaffInfoCacheResult result= CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), tokenDto.getUserId());
 | 
			
		
	
		
			
				
					|  |  |  | //            if (null == result || StringUtils.isBlank(result.getAgencyId())) {
 | 
			
		
	
		
			
				
					|  |  |  | //                log.error(String.format("staffId:%s,工作人员缓存信息查询异常", tokenDto.getUserId()));
 | 
			
		
	
		
			
				
					|  |  |  | //                return Collections.emptyList();
 | 
			
		
	
		
			
				
					|  |  |  | //            }
 | 
			
		
	
		
			
				
					|  |  |  | //            dto.setAgencyId(result.getAgencyId());
 | 
			
		
	
		
			
				
					|  |  |  | //        }
 | 
			
		
	
		
			
				
					|  |  |  |         return icBuildingDao.listBuildingInfo(dto); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |