|  |  | @ -11,12 +11,15 @@ import com.epmet.dto.ProjectStaffDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.form.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.entity.ProjectStaffEntity; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.EpmetUserOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.GovOrgFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.GovOrgOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.*; | 
			
		
	
		
			
				
					|  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.util.CollectionUtils; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.util.StringUtils; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import java.util.ArrayList; | 
			
		
	
		
			
				
					|  |  |  | import java.util.List; | 
			
		
	
	
		
			
				
					|  |  | @ -45,6 +48,10 @@ public class ProjectTraceServiceImpl implements ProjectTraceService { | 
			
		
	
		
			
				
					|  |  |  | 	private ProjectProcessAttachmentDao attachmentDao; | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private ProjectSubProcessService projectSubProcessService; | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private EpmetUserOpenFeignClient epmetUserOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private GovOrgOpenFeignClient govOrgOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	@Override | 
			
		
	
		
			
				
					|  |  |  | 	public List<PendProjectListResultDTO> getPendProjectList(TokenDto tokenDto, ProjectListFromDTO fromDTO) { | 
			
		
	
	
		
			
				
					|  |  | @ -213,4 +220,29 @@ public class ProjectTraceServiceImpl implements ProjectTraceService { | 
			
		
	
		
			
				
					|  |  |  | 		projectService.sendTo(formDTO); | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	/** | 
			
		
	
		
			
				
					|  |  |  | 	 * @param tokenDTO | 
			
		
	
		
			
				
					|  |  |  | 	 * @Author sun | 
			
		
	
		
			
				
					|  |  |  | 	 * @Description 项目立项组织树查询--查询当前工作人员所属组织,上两级组织,所有下级组织 | 
			
		
	
		
			
				
					|  |  |  | 	 **/ | 
			
		
	
		
			
				
					|  |  |  | 	@Override | 
			
		
	
		
			
				
					|  |  |  | 	public ProcessorListResultDTO approvalAgencyList(TokenDto tokenDTO) { | 
			
		
	
		
			
				
					|  |  |  | 		//1.获取token用户所属组织信息
 | 
			
		
	
		
			
				
					|  |  |  | 		LoginUserDetailsFormDTO dto = new LoginUserDetailsFormDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setApp(tokenDTO.getApp()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setClient(tokenDTO.getClient()); | 
			
		
	
		
			
				
					|  |  |  | 		dto.setUserId(tokenDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 		Result<LoginUserDetailsResultDTO> resultDto = epmetUserOpenFeignClient.getLoginUserDetails(dto); | 
			
		
	
		
			
				
					|  |  |  | 		if (!resultDto.success() || StringUtils.isEmpty(resultDto.getData().getAgencyId())) { | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException(String.format("调用user服务查询用户数据失败,userId->", tokenDTO.getUserId())); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		//2.根据组织Id查询当前组织上两级组织、本级组织、所有下级组织信息
 | 
			
		
	
		
			
				
					|  |  |  | 		Result<ProcessorListResultDTO> result = govOrgOpenFeignClient.getProcessorList(resultDto.getData().getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  | 		if (!resultDto.success()) { | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException(String.format("调用org服务查询用户数据失败,userId->", tokenDTO.getUserId())); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		return result.getData(); | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |