| 
														
															@@ -102,13 +102,13 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	@Override 
														 | 
														
														 | 
														
															 	@Override 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	public StatDto rankingList(Integer headUserId,int type, String startDate, String endDate) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	public StatDto rankingList(SysMusicCompareRecordQueryInfo queryInfo) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		StatDto result = new StatDto(); 
														 | 
														
														 | 
														
															 		StatDto result = new StatDto(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		MusicCompareRankingDto head = new MusicCompareRankingDto(); 
														 | 
														
														 | 
														
															 		MusicCompareRankingDto head = new MusicCompareRankingDto(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		head.setUserId(headUserId); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		List<MusicCompareRankingDto> userTrainStat = sysMusicCompareRecordDao.getUserTrainStat(startDate, endDate); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		head.setUserId(queryInfo.getUserId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		List<MusicCompareRankingDto> userTrainStat = sysMusicCompareRecordDao.getUserTrainStat(queryInfo.getStartTime(), queryInfo.getEndTime()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		List<MusicCompareRankingDto> detail = new ArrayList<>(); 
														 | 
														
														 | 
														
															 		List<MusicCompareRankingDto> detail = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		switch (type){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		switch (queryInfo.getOrderType()){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			case 1: 
														 | 
														
														 | 
														
															 			case 1: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				userTrainStat.sort(Comparator.comparing(m->m.getScore(), Comparator.reverseOrder())); 
														 | 
														
														 | 
														
															 				userTrainStat.sort(Comparator.comparing(m->m.getScore(), Comparator.reverseOrder())); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				break; 
														 | 
														
														 | 
														
															 				break; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -131,7 +131,7 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		for (int i = 0; i < detail.size(); i++) { 
														 | 
														
														 | 
														
															 		for (int i = 0; i < detail.size(); i++) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			detail.get(i).setRankNum(i+1); 
														 | 
														
														 | 
														
															 			detail.get(i).setRankNum(i+1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			detail.get(i).setTrainTime(detail.get(i).getTrainTime()/60); 
														 | 
														
														 | 
														
															 			detail.get(i).setTrainTime(detail.get(i).getTrainTime()/60); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			if(detail.get(i).getUserId().equals(headUserId)){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if(detail.get(i).getUserId().equals(queryInfo.getUserId())){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				head = detail.get(i); 
														 | 
														
														 | 
														
															 				head = detail.get(i); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} 
														 | 
														
														 | 
														
															 			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			if(studentSubjectMap.containsKey(detail.get(i).getUserId())){ 
														 | 
														
														 | 
														
															 			if(studentSubjectMap.containsKey(detail.get(i).getUserId())){ 
														 |