|  | @@ -38,6 +38,7 @@ import com.xunmei.core.safetyCheck.service.ICoreSafetyTaskService;
 | 
	
		
			
				|  |  |  import com.xunmei.core.thread.ThreadPoolConfig;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.RemoteOrgService;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.RemoteRoleService;
 | 
	
		
			
				|  |  | +import com.xunmei.system.api.RemoteUserService;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.domain.SysOrg;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.function.RemoteCallHandlerExecutor;
 | 
	
		
			
				|  |  |  import com.xunmei.system.api.model.LoginUser;
 | 
	
	
		
			
				|  | @@ -77,7 +78,8 @@ public class PanelServiceImpl implements PanelService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private IQuestionService questionService;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private RemoteUserService userService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private RemoteRoleService roleService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
	
		
			
				|  | @@ -156,7 +158,7 @@ public class PanelServiceImpl implements PanelService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          CompletableFuture<Void> allQueries = CompletableFuture.allOf(
 | 
	
		
			
				|  |  |                  resumptionTaskFuture, protectionTaskFuture, monitorTaskFuture, evaluateTaskFuture,
 | 
	
		
			
				|  |  | -                safetyTaskFuture, drillTaskFuture, eduTrainingTaskFuture, recLitFuture,questionTaskFuture, letterOutInFuture
 | 
	
		
			
				|  |  | +                safetyTaskFuture, drillTaskFuture, eduTrainingTaskFuture, recLitFuture, questionTaskFuture, letterOutInFuture
 | 
	
		
			
				|  |  |          );
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          allQueries.get(TIMEOUT, TimeUnit.SECONDS);
 | 
	
	
		
			
				|  | @@ -164,7 +166,7 @@ public class PanelServiceImpl implements PanelService {
 | 
	
		
			
				|  |  |          List<PanelListVo> resultList = Stream.of(
 | 
	
		
			
				|  |  |                          resumptionTaskFuture.join(), protectionTaskFuture.join(), monitorTaskFuture.join(), evaluateTaskFuture.join(),
 | 
	
		
			
				|  |  |                          safetyTaskFuture.join(), drillTaskFuture.join(), eduTrainingTaskFuture.join(), recLitFuture.join(),
 | 
	
		
			
				|  |  | -                        questionTaskFuture.join(),letterOutInFuture.join()
 | 
	
		
			
				|  |  | +                        questionTaskFuture.join(), letterOutInFuture.join()
 | 
	
		
			
				|  |  |                  )
 | 
	
		
			
				|  |  |                  .flatMap(Collection::stream)
 | 
	
		
			
				|  |  |                  .collect(Collectors.toList());
 | 
	
	
		
			
				|  | @@ -189,11 +191,16 @@ public class PanelServiceImpl implements PanelService {
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public List<WebPanelResult> selectWebData() throws ExecutionException, InterruptedException, TimeoutException {
 | 
	
		
			
				|  |  |          List<Long> roles = RemoteCallHandlerExecutor.executeRemoteCall(
 | 
	
		
			
				|  |  | -                () -> roleService.getUserRoleId(SecurityUtils.getUserId(), SecurityConstants.FROM_SOURCE),
 | 
	
		
			
				|  |  | +                () -> roleService.getUserRoleId(SecurityUtils.getUserId(), SecurityConstants.INNER),
 | 
	
		
			
				|  |  |                  ErrorMsgConstants.QUERY_USER_ROLE_ERROR);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        List<Long> permList = RemoteCallHandlerExecutor.executeRemoteCall(
 | 
	
		
			
				|  |  | +                () -> userService.selectUserRoleMenu(SecurityUtils.getUserId(), SecurityConstants.INNER),
 | 
	
		
			
				|  |  | +                ErrorMsgConstants.QUERY_USER_PERMISSION_ERROR);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          PanelListDto req = PanelAdapter.getMapperSelectParam(SecurityUtils.getLoginUser().getOrgId(),
 | 
	
		
			
				|  |  |                  roles, SecurityUtils.getUserId());
 | 
	
		
			
				|  |  | +        req.setPermList(permList);
 | 
	
		
			
				|  |  |          List<CompletableFuture<WebPanelResult>> list = new ArrayList<>();
 | 
	
		
			
				|  |  |          //教育培训
 | 
	
		
			
				|  |  |          CompletableFuture<WebPanelResult> eduTrainingTaskFuture = CompletableFuture.supplyAsync(() ->
 | 
	
	
		
			
				|  | @@ -261,7 +268,7 @@ public class PanelServiceImpl implements PanelService {
 | 
	
		
			
				|  |  |          final TableDataInfo<MessageAppPageVo> page = notificationService.selectAppPage(req);
 | 
	
		
			
				|  |  |          final List<MessageAppPageVo> rows = page.getRows();
 | 
	
		
			
				|  |  |          rows.sort(Comparator.comparing(MessageAppPageVo::getPublishTime).reversed());
 | 
	
		
			
				|  |  | -        hashMap.put("index1",rows );
 | 
	
		
			
				|  |  | +        hashMap.put("index1", rows);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private void getMaterials(Map<String, Object> hashMap) {
 | 
	
	
		
			
				|  | @@ -286,7 +293,7 @@ public class PanelServiceImpl implements PanelService {
 | 
	
		
			
				|  |  |                  final List<String> list = JSON.parseArray(json, String.class);
 | 
	
		
			
				|  |  |                  for (String str : list) {
 | 
	
		
			
				|  |  |                      final Map map = JSON.parseObject(str, Map.class);
 | 
	
		
			
				|  |  | -                    map.put("createTime",vo.getCreateTime());
 | 
	
		
			
				|  |  | +                    map.put("createTime", vo.getCreateTime());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                      fileLit.add(JSON.toJSONString(map));
 | 
	
		
			
				|  |  |                  }
 |