|
|
@ -392,12 +392,11 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
countMap.put("已完成比赛比率", 0); |
|
|
|
countMap.put("已完成比赛比率", 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
resultMap.putAll(countMap); |
|
|
|
|
|
|
|
|
|
|
|
List<PersonalAbilityEvaluationCollect> evaluationCollects = iPersonalAbilityEvaluationCollectService |
|
|
|
List<PersonalAbilityEvaluationCollect> evaluationCollects = iPersonalAbilityEvaluationCollectService |
|
|
|
.list(new LambdaQueryWrapper<PersonalAbilityEvaluationCollect>() |
|
|
|
.list(new LambdaQueryWrapper<PersonalAbilityEvaluationCollect>()); |
|
|
|
.orderByDesc(PersonalAbilityEvaluationCollect::getCreateTime) |
|
|
|
// resultMap.put("前60名学生能力值", evaluationCollects);
|
|
|
|
.last(" limit 60")); |
|
|
|
|
|
|
|
resultMap.put("前60名学生能力值", evaluationCollects); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PersonalAbilityEvaluationCollect> vos = new LinkedList<>(); |
|
|
|
List<PersonalAbilityEvaluationCollect> vos = new LinkedList<>(); |
|
|
|
Map<String, List<PersonalAbilityEvaluationCollect>> capacityIdListMap = Optional.ofNullable(evaluationCollects).orElse(new LinkedList<>()).stream() |
|
|
|
Map<String, List<PersonalAbilityEvaluationCollect>> capacityIdListMap = Optional.ofNullable(evaluationCollects).orElse(new LinkedList<>()).stream() |
|
|
@ -416,7 +415,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
vo.setCapacityName(departAbilityEvaluationList.get(0).getCapacityName()); |
|
|
|
vo.setCapacityName(departAbilityEvaluationList.get(0).getCapacityName()); |
|
|
|
vos.add(vo); |
|
|
|
vos.add(vo); |
|
|
|
}); |
|
|
|
}); |
|
|
|
resultMap.put("前60名学生能力平均值", vos); |
|
|
|
resultMap.put("学生能力平均值", vos); |
|
|
|
|
|
|
|
|
|
|
|
List<Map<String, Object>> abilityList = new LinkedList<>(); |
|
|
|
List<Map<String, Object>> abilityList = new LinkedList<>(); |
|
|
|
List<Integer> years = DateUtils.getLastxYear(2); |
|
|
|
List<Integer> years = DateUtils.getLastxYear(2); |
|
|
@ -635,13 +634,12 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
countMap.put("已完成比赛比率", 0); |
|
|
|
countMap.put("已完成比赛比率", 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
resultMap.putAll(countMap); |
|
|
|
|
|
|
|
|
|
|
|
List<PersonalAbilityEvaluationCollect> evaluationCollects = iPersonalAbilityEvaluationCollectService |
|
|
|
List<PersonalAbilityEvaluationCollect> evaluationCollects = iPersonalAbilityEvaluationCollectService |
|
|
|
.list(new LambdaQueryWrapper<PersonalAbilityEvaluationCollect>() |
|
|
|
.list(new LambdaQueryWrapper<PersonalAbilityEvaluationCollect>() |
|
|
|
.eq(PersonalAbilityEvaluationCollect::getDepetId, departId) |
|
|
|
.eq(PersonalAbilityEvaluationCollect::getDepetId, departId)); |
|
|
|
.orderByDesc(PersonalAbilityEvaluationCollect::getCreateTime) |
|
|
|
// resultMap.put("学生综合能力值分析", evaluationCollects);
|
|
|
|
.last(" limit 60")); |
|
|
|
|
|
|
|
resultMap.put("前60名学生能力值", evaluationCollects); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PersonalAbilityEvaluationCollect> vos = new LinkedList<>(); |
|
|
|
List<PersonalAbilityEvaluationCollect> vos = new LinkedList<>(); |
|
|
|
Map<String, List<PersonalAbilityEvaluationCollect>> capacityIdListMap = Optional.ofNullable(evaluationCollects).orElse(new LinkedList<>()).stream() |
|
|
|
Map<String, List<PersonalAbilityEvaluationCollect>> capacityIdListMap = Optional.ofNullable(evaluationCollects).orElse(new LinkedList<>()).stream() |
|
|
@ -660,7 +658,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
vo.setCapacityName(departAbilityEvaluationList.get(0).getCapacityName()); |
|
|
|
vo.setCapacityName(departAbilityEvaluationList.get(0).getCapacityName()); |
|
|
|
vos.add(vo); |
|
|
|
vos.add(vo); |
|
|
|
}); |
|
|
|
}); |
|
|
|
resultMap.put("前60名学生能力平均值", vos); |
|
|
|
resultMap.put("学生能力平均值", vos); |
|
|
|
|
|
|
|
|
|
|
|
List<Map<String, Object>> abilityList = new LinkedList<>(); |
|
|
|
List<Map<String, Object>> abilityList = new LinkedList<>(); |
|
|
|
List<Integer> years = DateUtils.getLastxYear(2); |
|
|
|
List<Integer> years = DateUtils.getLastxYear(2); |
|
|
@ -852,22 +850,4 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
return map; |
|
|
|
return map; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<CompVo> getCompList() { |
|
|
|
|
|
|
|
List<AnnualCompPoint> annualCompPointList = iAnnualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>() |
|
|
|
|
|
|
|
.eq(AnnualCompPoint::getRequireApply, "Y")); |
|
|
|
|
|
|
|
List<CompVo> compVoList = new LinkedList<>(); |
|
|
|
|
|
|
|
Optional.ofNullable(annualCompPointList).orElse(new LinkedList<>()).stream().forEach(p -> { |
|
|
|
|
|
|
|
CompVo compVo = new CompVo(); |
|
|
|
|
|
|
|
BeanUtils.copyProperties(p, compVo); |
|
|
|
|
|
|
|
List<AnnualCompetitionProjectRegistration> list = iAnnualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>() |
|
|
|
|
|
|
|
.eq(AnnualCompetitionProjectRegistration::getAnnualCompid, p.getId())); |
|
|
|
|
|
|
|
if (!ObjectUtils.isEmpty(list)) { |
|
|
|
|
|
|
|
Set<String> entryFormats = list.stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet()); |
|
|
|
|
|
|
|
Long count = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(TeamManagement::getEnrollCode, entryFormats)); |
|
|
|
|
|
|
|
compVo.setNumber(count.intValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return compVoList; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|