|
@@ -194,8 +194,15 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
|
studentSubjectMap = MapUtil.convertIntegerMap(studentSubjectMapList);
|
|
|
}
|
|
|
|
|
|
+ int rankNum = 0;
|
|
|
for (int i = 0; i < userTrainStat.size(); i++) {
|
|
|
- userTrainStat.get(i).setRankNum(i+1);
|
|
|
+ if(userTrainStat.get(i).getUserId().equals(queryInfo.getUserId())){
|
|
|
+ head = userTrainStat.get(i);
|
|
|
+ }
|
|
|
+ if(userTrainStat.get(i).getVipUser() <= 0){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ userTrainStat.get(i).setRankNum(++rankNum);
|
|
|
userTrainStat.get(i).setTrainTime(userTrainStat.get(i).getTrainTime()/60);
|
|
|
if(studentSubjectMap.containsKey(userTrainStat.get(i).getUserId())){
|
|
|
userTrainStat.get(i).setSubjectName(studentSubjectMap.get(userTrainStat.get(i).getUserId()));
|
|
@@ -203,9 +210,6 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
|
if(detail.size()<10){
|
|
|
detail.add(userTrainStat.get(i));
|
|
|
}
|
|
|
- if(userTrainStat.get(i).getUserId().equals(queryInfo.getUserId())){
|
|
|
- head = userTrainStat.get(i);
|
|
|
- }
|
|
|
}
|
|
|
Map<String,Object> params = new HashMap<String, Object>();
|
|
|
params.put("tenantId", queryInfo.getTenantId());
|