|  | @@ -76,36 +76,12 @@ public class ResumptionRecordServiceImpl extends ServiceImpl<ResumptionRecordMap
 | 
	
		
			
				|  |  |          Boolean isPage = Boolean.FALSE;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          String strDate = DateUtil.format(new Date(), "yyyy-MM-dd");
 | 
	
		
			
				|  |  | - /*       String orgKey = "resumptionRecordOrgList" + strDate;
 | 
	
		
			
				|  |  | -        Object objOrg = redisTemplate.opsForValue().get(orgKey);
 | 
	
		
			
				|  |  | -        List<Org> orgList = null;
 | 
	
		
			
				|  |  | -        if (ObjectUtil.isNotEmpty(objOrg)) {
 | 
	
		
			
				|  |  | -            orgList = JSON.parseArray(objOrg.toString(), Org.class);
 | 
	
		
			
				|  |  | -        } else {
 | 
	
		
			
				|  |  | -            orgList = orgService.all();
 | 
	
		
			
				|  |  | -            if (CollectionUtils.isNotEmpty(orgList)) {
 | 
	
		
			
				|  |  | -                this.redisTemplate.opsForValue().set(orgKey, JSON.toJSONString(orgList));
 | 
	
		
			
				|  |  | -                //设置过期时间24小时
 | 
	
		
			
				|  |  | -                this.redisTemplate.expire(orgKey, 24, TimeUnit.HOURS);
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }*/
 | 
	
		
			
				|  |  |          if (pageDto.getCheckSub()) {
 | 
	
		
			
				|  |  |              List<Long> orgList = orgService.selectCheckSubOrgIdList(pageDto.getOrgId(), SecurityConstants.INNER);
 | 
	
		
			
				|  |  |              pageDto.setOrgIdList(orgList);
 | 
	
		
			
				|  |  |              pageDto.setOrgId(null);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//        if (pageDto.getCheckSub() && ObjectUtil.isNotEmpty(pageDto.getOrgId())) {
 | 
	
		
			
				|  |  | -//            final Org org = orgService.find(pageDto.getOrgId());
 | 
	
		
			
				|  |  | -//            pageDto.setOrgId(null);
 | 
	
		
			
				|  |  | -//            List<Long> orgIds = new ArrayList<>();
 | 
	
		
			
				|  |  | -//            orgList.forEach(org1 -> {
 | 
	
		
			
				|  |  | -//                if (org1.getPath().contains(org.getPath())) {
 | 
	
		
			
				|  |  | -//                    orgIds.add(org1.getId());
 | 
	
		
			
				|  |  | -//                }
 | 
	
		
			
				|  |  | -//            });
 | 
	
		
			
				|  |  | -//            pageDto.setOrgIdList(orgIds);
 | 
	
		
			
				|  |  | -//        }
 | 
	
		
			
				|  |  |          final HashMap<String, Object> hashMap = new HashMap<>();
 | 
	
		
			
				|  |  |          Set<Integer> ymdQuarters = new HashSet<>();
 | 
	
		
			
				|  |  |          Boolean isTime = Boolean.FALSE;
 | 
	
	
		
			
				|  | @@ -132,60 +108,12 @@ public class ResumptionRecordServiceImpl extends ServiceImpl<ResumptionRecordMap
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              hashMap.put("startYear", startYear);
 | 
	
		
			
				|  |  |              hashMap.put("endYear", endYear);
 | 
	
		
			
				|  |  | -            hashMap.put("startDate", DateUtil.format(startDate,"yyyy-MM-dd HH:mm:ss"));
 | 
	
		
			
				|  |  | -            hashMap.put("endDate", DateUtil.format(endDate,"yyyy-MM-dd HH:mm:ss"));
 | 
	
		
			
				|  |  | -//            switch (pageDto.getExecuteCycle()) {
 | 
	
		
			
				|  |  | -//                case 1:
 | 
	
		
			
				|  |  | -//                case 2:
 | 
	
		
			
				|  |  | -//                 /*   hashMap.put("startDate", DateUtil.formatDate(startDate));
 | 
	
		
			
				|  |  | -//                    hashMap.put("endDate", DateUtil.formatDate(endDate));*/
 | 
	
		
			
				|  |  | -//                    break;
 | 
	
		
			
				|  |  | -//                case 3:
 | 
	
		
			
				|  |  | -//                    //每周履职
 | 
	
		
			
				|  |  | -//                    startCalendar.setMinimalDaysInFirstWeek(6);
 | 
	
		
			
				|  |  | -//                    int startWeek = startCalendar.get(Calendar.WEEK_OF_YEAR);
 | 
	
		
			
				|  |  | -//                    hashMap.put("startWeek", String.valueOf(startWeek));
 | 
	
		
			
				|  |  | -//                    //hashMap.put("endWeek", String.valueOf(endWeek));
 | 
	
		
			
				|  |  | -//                    break;
 | 
	
		
			
				|  |  | -//                case 4:
 | 
	
		
			
				|  |  | -//                    //每月履职
 | 
	
		
			
				|  |  | -//                    int startMonth = startCalendar.get(Calendar.MONTH) + 1;
 | 
	
		
			
				|  |  | -//                    int endMonth = endCalendar.get(Calendar.MONTH) + 1;
 | 
	
		
			
				|  |  | -//                   /* hashMap.put("startMonth", String.valueOf(startMonth));
 | 
	
		
			
				|  |  | -//                    hashMap.put("endMonth", String.valueOf(endMonth));*/
 | 
	
		
			
				|  |  | -//                    hashMap.put("startMonth", DateUtil.format(startCalendar.getTime(), "yyyy-MM-dd"));
 | 
	
		
			
				|  |  | -//                    hashMap.put("endMonth", DateUtil.format(endCalendar.getTime(), "yyyy-MM-dd"));
 | 
	
		
			
				|  |  | -//                    break;
 | 
	
		
			
				|  |  | -//                case 5:
 | 
	
		
			
				|  |  | -//                    //每季度履职
 | 
	
		
			
				|  |  | -//                    int startQuarter = getCurrentQuarter(startDate);
 | 
	
		
			
				|  |  | -//                    int endQuarter = getCurrentQuarter(endDate);
 | 
	
		
			
				|  |  | -//                    hashMap.put("startQuarter", String.valueOf(startQuarter));
 | 
	
		
			
				|  |  | -//                    hashMap.put("endQuarter", String.valueOf(endQuarter));
 | 
	
		
			
				|  |  | -//                    break;
 | 
	
		
			
				|  |  | -//                case 6:
 | 
	
		
			
				|  |  | -//                    //每半年履职
 | 
	
		
			
				|  |  | -//                    int startHalfYear = getCurrentHalfYear(startDate);
 | 
	
		
			
				|  |  | -//                    int endHalfYear = getCurrentHalfYear(endDate);
 | 
	
		
			
				|  |  | -//                    hashMap.put("startHalfYear", String.valueOf(startHalfYear));
 | 
	
		
			
				|  |  | -//                    hashMap.put("endHalfYear", String.valueOf(endHalfYear));
 | 
	
		
			
				|  |  | -//                    break;
 | 
	
		
			
				|  |  | -//                default:
 | 
	
		
			
				|  |  | -//                    break;
 | 
	
		
			
				|  |  | -//            }
 | 
	
		
			
				|  |  | +            hashMap.put("startDate", DateUtil.format(startDate, "yyyy-MM-dd HH:mm:ss"));
 | 
	
		
			
				|  |  | +            hashMap.put("endDate", DateUtil.format(endDate, "yyyy-MM-dd HH:mm:ss"));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -//        if (isPage) {
 | 
	
		
			
				|  |  | -//            RESUMPTIONOVERVIEWLOG.info("履职记录查询,查询条件: pageDto: {},hashMap:{},isTime:{}", JSON.toJSONString(pageDto), JSON.toJSONString(hashMap), isTime);
 | 
	
		
			
				|  |  |          page = baseMapper.selectPageByCondition(page, pageDto, hashMap, isTime, ymdQuarters);
 | 
	
		
			
				|  |  |          dealData(page.getRecords());
 | 
	
		
			
				|  |  |          return TableDataInfo.success(page);
 | 
	
		
			
				|  |  | -//        } else {
 | 
	
		
			
				|  |  | -////            RESUMPTIONOVERVIEWLOG.info("履职记录导出,查询条件: pageDto: {},hashMap:{}", JSON.toJSONString(pageDto), JSON.toJSONString(hashMap));
 | 
	
		
			
				|  |  | -//            final List<ResumptionRecordPageVo> list = resumptionRecordMapper.selectListByCondition(pageDto, hashMap, isTime, ymdQuarters);
 | 
	
		
			
				|  |  | -//            dealData(list, orgList, strDate);
 | 
	
		
			
				|  |  | -//            return list;
 | 
	
		
			
				|  |  | -//        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -193,38 +121,9 @@ public class ResumptionRecordServiceImpl extends ServiceImpl<ResumptionRecordMap
 | 
	
		
			
				|  |  |          if (list.size() < 1) {
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -//        String roleKey = "resumptionRecordRoleList" + strDate;
 | 
	
		
			
				|  |  | -//        BoundValueOperations<String, String> boundValueOps = redisTemplate.boundValueOps(roleKey);
 | 
	
		
			
				|  |  | -//        String s = boundValueOps.get();
 | 
	
		
			
				|  |  | -//        List<Role> roleList = null;
 | 
	
		
			
				|  |  | -//        if (ObjectUtil.isNotEmpty(s)) {
 | 
	
		
			
				|  |  | -//            roleList = JSON.parseArray(s, Role.class);
 | 
	
		
			
				|  |  | -//        } else {
 | 
	
		
			
				|  |  | -//            roleList = objectMapper.selectAllRole();
 | 
	
		
			
				|  |  | -//            if (CollectionUtils.isNotEmpty(list)) {
 | 
	
		
			
				|  |  | -//                boundValueOps.set(JSON.toJSONString(roleList));
 | 
	
		
			
				|  |  | -//                boundValueOps.expireAt(DateUtil.endOfDay(new Date()));
 | 
	
		
			
				|  |  | -//            }
 | 
	
		
			
				|  |  | -//        }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -   /*=    String planKey = "resumptionRecordPlanList"+strDate;
 | 
	
		
			
				|  |  | -        BoundValueOperations<String, String> operations = redisTemplate.boundValueOps(planKey);
 | 
	
		
			
				|  |  | -        String objPlan = operations.get();
 | 
	
		
			
				|  |  | -        List<AppPlan> planList =null;
 | 
	
		
			
				|  |  | -        if(ObjectUtil.isNotEmpty(objPlan)) {
 | 
	
		
			
				|  |  | -            planList = JSON.parseArray(objPlan,AppPlan.class);
 | 
	
		
			
				|  |  | -        }else{
 | 
	
		
			
				|  |  | -            planList =objectMapper.selectAllPlan();
 | 
	
		
			
				|  |  | -            if(CollectionUtils.isNotEmpty(list)){
 | 
	
		
			
				|  |  | -                operations.set(JSON.toJSONString(list));
 | 
	
		
			
				|  |  | -                operations.expireAt(DateUtil.endOfDay(new Date()));
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }*/
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -//        List<IdNameVo> planList = appPlanMapper.selectPlanNames(list.stream().map(i -> i.getPlanId()).distinct().collect(Collectors.toList()));
 | 
	
		
			
				|  |  | -        List<IdNameVo> orgNames = orgService.getParentName(list.stream()
 | 
	
		
			
				|  |  | +       /* List<IdNameVo> orgNames = orgService.getParentName(list.stream()
 | 
	
		
			
				|  |  |                          .map(i -> i.getOrgId()).distinct().collect(Collectors.toList()), SecurityConstants.INNER)
 | 
	
		
			
				|  |  | -                .getData();
 | 
	
		
			
				|  |  | +                .getData();*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          LambdaQueryWrapper<AppPlanToRole> prWrapper = new LambdaQueryWrapper<>();
 | 
	
	
		
			
				|  | @@ -236,20 +135,15 @@ public class ResumptionRecordServiceImpl extends ServiceImpl<ResumptionRecordMap
 | 
	
		
			
				|  |  |                  .ids(prMapper.stream().map(i -> i.getRoleId()).distinct().collect(Collectors.toList())).build());
 | 
	
		
			
				|  |  |          list.stream().filter(pageVo -> ObjectUtil.equal(pageVo.getStatus(), "1")).forEach(pageVo -> pageVo.setSubmitter(null));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        //List<Org> orgList = orgService.all();
 | 
	
		
			
				|  |  |          for (ResumptionRecordPageVo vo : list) {
 | 
	
		
			
				|  |  | -            if (ObjectUtil.isNotEmpty(orgNames)) {
 | 
	
		
			
				|  |  | +            /*if (ObjectUtil.isNotEmpty(orgNames)) {
 | 
	
		
			
				|  |  |                  Optional<IdNameVo> org = orgNames.stream().filter(i -> ObjectUtil.equal(vo.getOrgId(), i.getId())).findFirst();
 | 
	
		
			
				|  |  |                  if (org.isPresent()) {
 | 
	
		
			
				|  |  |                      vo.setOrgName(org.get().getName());
 | 
	
		
			
				|  |  |                      vo.setParentOrgName(org.get().getExtra());
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +            }*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//            Optional<IdNameVo> plan=planList.stream().filter(i -> ObjectUtil.equal(vo.getPlanId(), i.getId())).findFirst();
 | 
	
		
			
				|  |  | -//            if (plan.isPresent()) {
 | 
	
		
			
				|  |  | -//                vo.setPlanName(plan.get().getName());
 | 
	
		
			
				|  |  | -//            }
 | 
	
		
			
				|  |  |              List<Long> roleIds = prMapper.stream().filter(pr -> ObjectUtil.equal(pr.getPlanId(), vo.getPlanId()))
 | 
	
		
			
				|  |  |                      .map(AppPlanToRole::getRoleId)
 | 
	
		
			
				|  |  |                      .collect(Collectors.toList());
 |