|
@@ -161,7 +161,6 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
|
StatDto result = new StatDto();
|
|
|
MusicCompareRankingDto head = new MusicCompareRankingDto();
|
|
|
head.setUserId(queryInfo.getUserId());
|
|
|
- head.setStudentNum(studentDao.countStudentsWithOrgan(null));
|
|
|
List<MusicCompareRankingDto> userTrainStat = sysMusicCompareWeekDataDao.getUserTrainStat(queryInfo.getStartTime(), queryInfo.getOrderType(), Objects.isNull(queryInfo.getHeardLevel())?null:queryInfo.getHeardLevel().getCode());
|
|
|
List<MusicCompareRankingDto> detail = new ArrayList<>();
|
|
|
|
|
@@ -185,6 +184,7 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
|
head = userTrainStat.get(i);
|
|
|
}
|
|
|
}
|
|
|
+ head.setStudentNum(studentDao.countStudentsWithOrgan(null));
|
|
|
result.setHead(head);
|
|
|
detail.sort(Comparator.comparing(MusicCompareRankingDto::getRankNum).thenComparing(MusicCompareRankingDto::getUserId));
|
|
|
result.setDetail(detail);
|