| 
						
						
							
								
							
						
						
					 | 
					@ -47,11 +47,6 @@ import com.epmet.dto.result.AllGridsByUserIdResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.IcResiUserBriefDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.IcResiUserBriefDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.UserBaseInfoResultDTO; | 
					 | 
					 | 
					import com.epmet.dto.result.UserBaseInfoResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.*; | 
					 | 
					 | 
					import com.epmet.dto.result.demand.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.DemandRecResultDTO; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.FinishResultDTO; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.IcResiUserReportDemandRes; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.ServiceStatDTO; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.result.demand.*; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.entity.*; | 
					 | 
					 | 
					import com.epmet.entity.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.feign.EpmetAdminOpenFeignClient; | 
					 | 
					 | 
					import com.epmet.feign.EpmetAdminOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.feign.EpmetUserOpenFeignClient; | 
					 | 
					 | 
					import com.epmet.feign.EpmetUserOpenFeignClient; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -643,15 +638,15 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public PageData<DemandRecResultDTO> pageListAnalysis(PageListAnalysisFormDTO formDTO) { | 
					 | 
					 | 
					    public PageData<DemandRecResultDTO> pageListAnalysis(PageListAnalysisFormDTO formDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if("agency".equals(formDTO.getOrgType())){ | 
					 | 
					 | 
					        if("agency".equals(formDTO.getOrgType())){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            if(NumConstant.ZERO_STR.equals(formDTO.getPid())){ | 
					 | 
					 | 
					            //找到当前组织的所有上级,再拼接上自己
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(!customerAgencyDTOResult.success()||null==customerAgencyDTOResult.getData()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取组织信息异常govOrgOpenFeignClient.getAgencyById"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(NumConstant.ZERO_STR.equals(customerAgencyDTOResult.getData().getPid())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                //当前传入的组织id=客户的根组织
 | 
					 | 
					 | 
					                //当前传入的组织id=客户的根组织
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                formDTO.setGridPids(formDTO.getOrgId()); | 
					 | 
					 | 
					                formDTO.setGridPids(formDTO.getOrgId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }else{ | 
					 | 
					 | 
					            }else{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                //找到当前组织的所有上级,再拼接上自己
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                if(!customerAgencyDTOResult.success()||null==customerAgencyDTOResult.getData()){ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取组织信息异常govOrgOpenFeignClient.getAgencyById"); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                formDTO.setGridPids(customerAgencyDTOResult.getData().getPids().concat(StrConstant.COLON).concat(formDTO.getOrgId())); | 
					 | 
					 | 
					                formDTO.setGridPids(customerAgencyDTOResult.getData().getPids().concat(StrConstant.COLON).concat(formDTO.getOrgId())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -754,15 +749,15 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        log.info("阶段性胜利1:"+ JSON.toJSONString(legend)); | 
					 | 
					 | 
					        log.info("阶段性胜利1:"+ JSON.toJSONString(legend)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // 3、传进来的是组织id的话,查询出全路径
 | 
					 | 
					 | 
					        // 3、传进来的是组织id的话,查询出全路径
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if("agency".equals(formDTO.getOrgType())){ | 
					 | 
					 | 
					        if("agency".equals(formDTO.getOrgType())){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            if(NumConstant.ZERO_STR.equals(formDTO.getPid())){ | 
					 | 
					 | 
					            //找到当前组织的所有上级,再拼接上自己
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(!customerAgencyDTOResult.success()||null==customerAgencyDTOResult.getData()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取组织信息异常govOrgOpenFeignClient.getAgencyById"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(NumConstant.ZERO_STR.equals(customerAgencyDTOResult.getData().getPid())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                //当前传入的组织id=客户的根组织
 | 
					 | 
					 | 
					                //当前传入的组织id=客户的根组织
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                formDTO.setGridPids(formDTO.getOrgId()); | 
					 | 
					 | 
					                formDTO.setGridPids(formDTO.getOrgId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }else{ | 
					 | 
					 | 
					            }else{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                //找到当前组织的所有上级,再拼接上自己
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                if(!customerAgencyDTOResult.success()||null==customerAgencyDTOResult.getData()){ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取组织信息异常govOrgOpenFeignClient.getAgencyById"); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                formDTO.setGridPids(customerAgencyDTOResult.getData().getPids().concat(StrConstant.COLON).concat(formDTO.getOrgId())); | 
					 | 
					 | 
					                formDTO.setGridPids(customerAgencyDTOResult.getData().getPids().concat(StrConstant.COLON).concat(formDTO.getOrgId())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |