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