|
@@ -464,7 +464,7 @@ public class ScoreDataServiceImpl implements IScoreDataService {
|
|
|
Map<String, Double> map = new HashMap<>();
|
|
|
if (scoreId != null) {
|
|
|
//过滤出本班学生id
|
|
|
- scoreDataStudentVos = scoreDataStudentVos.stream().filter(scoreDataStudentVo -> scoreDataStudentVo.getScoreId().equals(scoreId)).sorted(Comparator.comparing(ScoreDataStudentVo::getZongfen)).collect(Collectors.toList());
|
|
|
+ scoreDataStudentVos = scoreDataStudentVos.stream().filter(scoreDataStudentVo -> scoreDataStudentVo.getScoreId().equals(scoreId)).sorted(Comparator.comparing(ScoreDataStudentVo::getZongfen).reversed()).collect(Collectors.toList());
|
|
|
//去查询对应学生的具体学科成绩/计算学科平均分
|
|
|
//获取所有学生id
|
|
|
List<Long> scoreDataNameIds = scoreDataStudentVos.stream().map(ScoreDataStudentVo::getScoreDataNameId).collect(Collectors.toList());
|