|
|
@ -374,6 +374,10 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
} |
|
|
|
} |
|
|
|
final String REPORT4SCHOOL = "report4School-" + currentYear; |
|
|
|
final String REPORT4SCHOOL = "report4School-" + currentYear; |
|
|
|
Map<String, Object> resultMap = new LinkedHashMap<>(); |
|
|
|
Map<String, Object> resultMap = new LinkedHashMap<>(); |
|
|
|
|
|
|
|
boolean hasKey = redisUtil.hasKey(REPORT4SCHOOL); |
|
|
|
|
|
|
|
if (hasKey && !recreateFlag) { |
|
|
|
|
|
|
|
return redisUtil.get(REPORT4SCHOOL); |
|
|
|
|
|
|
|
} |
|
|
|
if (recreateFlag) { |
|
|
|
if (recreateFlag) { |
|
|
|
//年度
|
|
|
|
//年度
|
|
|
|
Annual annual = iAnnualService.getOne(new LambdaQueryWrapper<Annual>().eq(Annual::getAnnualName, currentYear + "")); |
|
|
|
Annual annual = iAnnualService.getOne(new LambdaQueryWrapper<Annual>().eq(Annual::getAnnualName, currentYear + "")); |
|
|
@ -593,15 +597,15 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
scoreList4Point.stream().sorted(Comparator.comparing(HomePageCompVo::getTotalScore)).collect(Collectors.toList()); |
|
|
|
scoreList4Point.stream().sorted(Comparator.comparing(HomePageCompVo::getTotalScore)).collect(Collectors.toList()); |
|
|
|
resultMap.put("比赛学生积分况分析", scoreList4Point); |
|
|
|
resultMap.put("比赛学生积分况分析", scoreList4Point); |
|
|
|
redisUtil.set(REPORT4SCHOOL, resultMap); |
|
|
|
redisUtil.set(REPORT4SCHOOL, resultMap); |
|
|
|
return resultMap; |
|
|
|
}/* else { |
|
|
|
} else { |
|
|
|
|
|
|
|
boolean hasKey = redisUtil.hasKey(REPORT4SCHOOL); |
|
|
|
boolean hasKey = redisUtil.hasKey(REPORT4SCHOOL); |
|
|
|
if (hasKey) { |
|
|
|
if (hasKey) { |
|
|
|
return redisUtil.get(REPORT4SCHOOL); |
|
|
|
return redisUtil.get(REPORT4SCHOOL); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return this.report4School(annualId, true); |
|
|
|
return this.report4School(annualId, true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private List<AnnualCompPoint> convertPoint4Depart(SysDepart depart) { |
|
|
|
private List<AnnualCompPoint> convertPoint4Depart(SysDepart depart) { |
|
|
@ -631,6 +635,10 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
currentYear = DateUtils.getCurrentYear() + ""; |
|
|
|
currentYear = DateUtils.getCurrentYear() + ""; |
|
|
|
} |
|
|
|
} |
|
|
|
final String REPORT4DEPART = "report4Depart-" + currentYear; |
|
|
|
final String REPORT4DEPART = "report4Depart-" + currentYear; |
|
|
|
|
|
|
|
boolean hasKey = redisUtil.hasKey(REPORT4DEPART); |
|
|
|
|
|
|
|
if (hasKey && !recreateFlag) { |
|
|
|
|
|
|
|
return redisUtil.get(REPORT4DEPART); |
|
|
|
|
|
|
|
} |
|
|
|
if (recreateFlag) { |
|
|
|
if (recreateFlag) { |
|
|
|
SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getOrgCode, orgCode)); |
|
|
|
SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getOrgCode, orgCode)); |
|
|
|
if (ObjectUtil.isNull(sysDepart)) { |
|
|
|
if (ObjectUtil.isNull(sysDepart)) { |
|
|
@ -821,15 +829,8 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
} |
|
|
|
} |
|
|
|
canSaiList.add(departMap); |
|
|
|
canSaiList.add(departMap); |
|
|
|
redisUtil.set(REPORT4DEPART, resultMap); |
|
|
|
redisUtil.set(REPORT4DEPART, resultMap); |
|
|
|
return resultMap; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
boolean hasKey = redisUtil.hasKey(REPORT4DEPART); |
|
|
|
|
|
|
|
if (hasKey) { |
|
|
|
|
|
|
|
return redisUtil.get(REPORT4DEPART); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return this.report4Depart(annualId, orgCode, true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> convertProjectLevel(List<AnnualCompPoint> annualCompPointList) { |
|
|
|
Map<String, Object> convertProjectLevel(List<AnnualCompPoint> annualCompPointList) { |
|
|
|