|
@@ -111,13 +111,13 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
|
List<MusicCompareRankingDto> detail = new ArrayList<>();
|
|
|
switch (queryInfo.getOrderType()){
|
|
|
case 1:
|
|
|
- userTrainStat.sort(Comparator.comparing(m->m.getScore(), Comparator.reverseOrder()));
|
|
|
+ userTrainStat.sort(Comparator.comparing(MusicCompareRankingDto::getScore, Comparator.reverseOrder()).thenComparing(MusicCompareRankingDto::getUserId));
|
|
|
break;
|
|
|
case 2:
|
|
|
- userTrainStat.sort(Comparator.comparing(m->m.getTrainDays(), Comparator.reverseOrder()));
|
|
|
+ userTrainStat.sort(Comparator.comparing(MusicCompareRankingDto::getTrainDays, Comparator.reverseOrder()).thenComparing(MusicCompareRankingDto::getUserId));
|
|
|
break;
|
|
|
default:
|
|
|
- userTrainStat.sort(Comparator.comparing(m->m.getTrainTime(), Comparator.reverseOrder()));
|
|
|
+ userTrainStat.sort(Comparator.comparing(MusicCompareRankingDto::getTrainTime, Comparator.reverseOrder()).thenComparing(MusicCompareRankingDto::getUserId));
|
|
|
break;
|
|
|
}
|
|
|
|