|  | @@ -63,7 +63,7 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public List<AppTaskRankingVo> taskRanking(AppTaskRankingDto dto) {
 | 
	
		
			
				|  |  |          DateRange range = DateUtils.getStartAndEnd(dto.getMonth(), CycleCommonEnum.MONTHLY);
 | 
	
		
			
				|  |  | -        SysOrg org = remoteOrgService.selectOrgById(SecurityUtils.getLoginUser().getOrgId(), SecurityConstants.INNER);
 | 
	
		
			
				|  |  | +        SysOrg org =getLoginOrg(dto.getOrgId());
 | 
	
		
			
				|  |  |          String orgPath = org.getPath();
 | 
	
		
			
				|  |  |          List<TaskStatisticVo> list = cockpitMapper.resumption(range.getStartTime(), range.getEndTime(), orgPath);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -114,8 +114,8 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public AppBaseInfoVo baseInfo() {
 | 
	
		
			
				|  |  | -        SysOrg org = getLoginOrg();
 | 
	
		
			
				|  |  | +    public AppBaseInfoVo baseInfo(Long orgId) {
 | 
	
		
			
				|  |  | +        SysOrg org = getLoginOrg(orgId);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          AppBaseInfoVo vo = new AppBaseInfoVo();
 | 
	
		
			
				|  |  |          AppOrgBaseInfoDto baseInfoDto = appCockpitMapper.selectOrgBaseInfo(org.getPath());
 | 
	
	
		
			
				|  | @@ -166,8 +166,8 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public AppOverviewVo overview() throws ExecutionException, InterruptedException, TimeoutException {
 | 
	
		
			
				|  |  | -        SysOrg org = getLoginOrg();
 | 
	
		
			
				|  |  | +    public AppOverviewVo overview(Long orgId) throws ExecutionException, InterruptedException, TimeoutException {
 | 
	
		
			
				|  |  | +        SysOrg org = getLoginOrg(orgId);
 | 
	
		
			
				|  |  |          AppOverviewVo vo = new AppOverviewVo();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Date currentMonth = DateUtil.beginOfMonth(new Date());
 | 
	
	
		
			
				|  | @@ -241,8 +241,8 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public AppSyntheticResumptionVo syntheticResumption(Date month) {
 | 
	
		
			
				|  |  | -        SysOrg org = getLoginOrg();
 | 
	
		
			
				|  |  | +    public AppSyntheticResumptionVo syntheticResumption(Long orgId, Date month) {
 | 
	
		
			
				|  |  | +        SysOrg org = getLoginOrg(orgId);
 | 
	
		
			
				|  |  |          DateRange range = DateUtils.getStartAndEnd(month, CycleCommonEnum.MONTHLY);
 | 
	
		
			
				|  |  |          List<AppSyntheticTaskCategoryDto> taskCategoryDtos = appCockpitMapper.selectSyntheticResumption(org.getPath(), range.getStartTime(), range.getEndTime());
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -273,8 +273,8 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public AppSyntheticQuestionVo syntheticQuestion(Date month) {
 | 
	
		
			
				|  |  | -        SysOrg org = getLoginOrg();
 | 
	
		
			
				|  |  | +    public AppSyntheticQuestionVo syntheticQuestion(Long orgId, Date month) {
 | 
	
		
			
				|  |  | +        SysOrg org = getLoginOrg(orgId);
 | 
	
		
			
				|  |  |          DateRange range = DateUtils.getStartAndEnd(month, CycleCommonEnum.MONTHLY);
 | 
	
		
			
				|  |  |          AppSyntheticQuestionDto questionDto = appCockpitMapper.selectSyntheticQuestion(org.getPath(), range.getStartTime(), range.getEndTime());
 | 
	
		
			
				|  |  |          int overdueCount = appCockpitMapper.selectOverDueQuestionCount(org.getPath(), range.getStartTime(), range.getEndTime());
 | 
	
	
		
			
				|  | @@ -307,8 +307,8 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public AppSyntheticSafetycheckVo syntheticSafetyCheck(Date month) {
 | 
	
		
			
				|  |  | -        SysOrg org = getLoginOrg();
 | 
	
		
			
				|  |  | +    public AppSyntheticSafetycheckVo syntheticSafetyCheck(Long orgId, Date month) {
 | 
	
		
			
				|  |  | +        SysOrg org = getLoginOrg(orgId);
 | 
	
		
			
				|  |  |          DateRange range = DateUtils.getStartAndEnd(month, CycleCommonEnum.MONTHLY);
 | 
	
		
			
				|  |  |          List<AppSyntheticTaskCategoryDto> taskCategoryDtos = appCockpitMapper.selectSyntheticSafetyCheck(org.getPath(), range.getStartTime(), range.getEndTime());
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -385,8 +385,8 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |  //    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public AppSyntheticOtherVo syntheticOther(Date date) throws ExecutionException, InterruptedException, TimeoutException {
 | 
	
		
			
				|  |  | -        SysOrg org = getLoginOrg();
 | 
	
		
			
				|  |  | +    public AppSyntheticOtherVo syntheticOther(Long orgId, Date date) throws ExecutionException, InterruptedException, TimeoutException {
 | 
	
		
			
				|  |  | +        SysOrg org = getLoginOrg(orgId);
 | 
	
		
			
				|  |  |          DateRange range = DateUtils.getStartAndEnd(date, CycleCommonEnum.QUARTERLY);
 | 
	
		
			
				|  |  |          CompletableFuture<AppSyntheticTaskCategoryDto> edu = CompletableFuture.supplyAsync(() ->
 | 
	
		
			
				|  |  |                  appCockpitMapper.selectSyntheticEdu(org.getPath(), range.getStartTime(), range.getEndTime()), threadPoolTaskExecutor
 | 
	
	
		
			
				|  | @@ -403,7 +403,7 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |          );
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          CompletableFuture<Void> allQueries = CompletableFuture.allOf(
 | 
	
		
			
				|  |  | -                inout, edu,drill, monitor
 | 
	
		
			
				|  |  | +                inout, edu, drill, monitor
 | 
	
		
			
				|  |  |          );
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          allQueries.get(TIMEOUT, TimeUnit.SECONDS);
 | 
	
	
		
			
				|  | @@ -451,8 +451,11 @@ public class AppCockpitServiceImpl implements AppCockpitService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private SysOrg getLoginOrg() {
 | 
	
		
			
				|  |  | -        SysOrg org = remoteOrgService.selectOrgById(SecurityUtils.getLoginUser().getOrgId(), SecurityConstants.INNER);
 | 
	
		
			
				|  |  | +    private SysOrg getLoginOrg(Long orgId) {
 | 
	
		
			
				|  |  | +        if (ObjectUtil.isNull(orgId)) {
 | 
	
		
			
				|  |  | +            orgId = SecurityUtils.getLoginUser().getOrgId();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        SysOrg org = remoteOrgService.selectOrgById(orgId, SecurityConstants.INNER);
 | 
	
		
			
				|  |  |          if (ObjectUtil.isNull(org)) {
 | 
	
		
			
				|  |  |              throw new ServiceException("未获取到登录机构");
 | 
	
		
			
				|  |  |          }
 |