|  |  | @ -31,7 +31,9 @@ import com.epmet.commons.tools.exception.EpmetException; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.exception.RenException; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.feign.ResultDataResolver; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.redis.common.CustomerOrgRedis; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.redis.common.CustomerStaffRedis; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.scan.param.TextScanParamDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.scan.param.TextTaskDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.scan.result.SyncScanResult; | 
			
		
	
	
		
			
				
					|  |  | @ -961,15 +963,16 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD | 
			
		
	
		
			
				
					|  |  |  |         // 3、传进来的是组织id的话,查询出全路径
 | 
			
		
	
		
			
				
					|  |  |  |         if("agency".equals(formDTO.getOrgType())){ | 
			
		
	
		
			
				
					|  |  |  |             //找到当前组织的所有上级,再拼接上自己
 | 
			
		
	
		
			
				
					|  |  |  |             Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); | 
			
		
	
		
			
				
					|  |  |  |             /*Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); | 
			
		
	
		
			
				
					|  |  |  |             if(!customerAgencyDTOResult.success()||null==customerAgencyDTOResult.getData()){ | 
			
		
	
		
			
				
					|  |  |  |                 throw new EpmetException(EpmetErrorCode.SERVER_ERROR.getCode(), "获取组织信息异常govOrgOpenFeignClient.getAgencyById"); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |             if(NumConstant.ZERO_STR.equals(customerAgencyDTOResult.getData().getPid())){ | 
			
		
	
		
			
				
					|  |  |  |             }*/ | 
			
		
	
		
			
				
					|  |  |  |             AgencyInfoCache agencyInfoCache=CustomerOrgRedis.getAgencyInfo(formDTO.getOrgId()); | 
			
		
	
		
			
				
					|  |  |  |             if(NumConstant.ZERO_STR.equals(agencyInfoCache.getPid())||StringUtils.isBlank(agencyInfoCache.getPid())){ | 
			
		
	
		
			
				
					|  |  |  |                 //当前传入的组织id=客户的根组织
 | 
			
		
	
		
			
				
					|  |  |  |                 formDTO.setGridPids(formDTO.getOrgId()); | 
			
		
	
		
			
				
					|  |  |  |             }else{ | 
			
		
	
		
			
				
					|  |  |  |                 formDTO.setGridPids(customerAgencyDTOResult.getData().getPids().concat(StrConstant.COLON).concat(formDTO.getOrgId())); | 
			
		
	
		
			
				
					|  |  |  |                 formDTO.setGridPids(agencyInfoCache.getPids().concat(StrConstant.COLON).concat(formDTO.getOrgId())); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -1010,11 +1013,25 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |                             //遍历之前构造好的图例
 | 
			
		
	
		
			
				
					|  |  |  |                             for(CategoryAnalysisDetail resultDetail:result.getDetail()){ | 
			
		
	
		
			
				
					|  |  |  |                                 if(MapUtils.isNotEmpty(detailMap)){ | 
			
		
	
		
			
				
					|  |  |  |                                     Iterator<String> iter = detailMap.keySet().iterator(); | 
			
		
	
		
			
				
					|  |  |  |                                     String key = ""; | 
			
		
	
		
			
				
					|  |  |  |                                     while (iter.hasNext()) { | 
			
		
	
		
			
				
					|  |  |  |                                         key = iter.next(); | 
			
		
	
		
			
				
					|  |  |  |                                         if(key.contains(resultDetail.getLegendCode())){ | 
			
		
	
		
			
				
					|  |  |  |                                             resultDetail.setTotalService(detailMap.get(resultDetail.getLegendCode()).getTotalService()); | 
			
		
	
		
			
				
					|  |  |  |                                             resultDetail.setServiceDemandTotal(detailMap.get(resultDetail.getLegendCode()).getServiceDemandTotal()); | 
			
		
	
		
			
				
					|  |  |  |                                         } | 
			
		
	
		
			
				
					|  |  |  |                                     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |                                 } | 
			
		
	
		
			
				
					|  |  |  |                             } | 
			
		
	
		
			
				
					|  |  |  |                             /*for(CategoryAnalysisDetail resultDetail:result.getDetail()){ | 
			
		
	
		
			
				
					|  |  |  |                                 if(detailMap.containsKey(resultDetail.getLegendCode())&&null!=detailMap.get(resultDetail.getLegendCode())){ | 
			
		
	
		
			
				
					|  |  |  |                                     resultDetail.setTotalService(detailMap.get(resultDetail.getLegendCode()).getTotalService()); | 
			
		
	
		
			
				
					|  |  |  |                                     resultDetail.setServiceDemandTotal(detailMap.get(resultDetail.getLegendCode()).getServiceDemandTotal()); | 
			
		
	
		
			
				
					|  |  |  |                                 } | 
			
		
	
		
			
				
					|  |  |  |                             } | 
			
		
	
		
			
				
					|  |  |  |                             }*/ | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |                         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |