Commit 815099a1 authored by liming's avatar liming

修改排名时间逻辑使用毫秒

parent feeb8de0
......@@ -168,7 +168,7 @@ public class SeriesService {
public List<SeriesQualifyingMatchRankVO> getSeriesQualifyingMatchRank(SeriesQualifyingMatchRankDTO dto) {
Page<SeriesQualifyingMatchRankVO> pageParam = new Page<>(dto.getPageNo(), dto.getPageSize());
pageParam.addOrder(new OrderItem("t1.duration", true));
pageParam.addOrder(new OrderItem("t2.millisecond", true));
pageParam.addOrder(new OrderItem("t1.create_time", true));
pageParam.addOrder(new OrderItem("t1.id", true));
IPage<SeriesQualifyingMatchRankVO> result = seriesBusinessMapper.getSeriesQualifyingMatchRank(pageParam, dto);
......@@ -322,7 +322,7 @@ public class SeriesService {
pageParam.addOrder(new OrderItem("t1.status", false));
pageParam.addOrder(new OrderItem("t1.match_rank", true));
pageParam.addOrder(new OrderItem("t1.distance", false));
pageParam.addOrder(new OrderItem("t1.duration", true));
pageParam.addOrder(new OrderItem("t1.millisecond", true));
IPage<SeriesKnockoutMatchRankVO> result = seriesBusinessMapper.getSeriesKnockoutMatchRankList(pageParam,
dto.getMatchId());
return result.getRecords();
......
......@@ -68,7 +68,7 @@
left join sport_user t2 on t1.player_id = t2.id
left join sport_user_training_log t3 on t3.game_mode = 20 and t1.id = t3.record_id
where t1.match_id = #{sourceId} and t1.finished = 1
order by t1.status desc,match_rank asc,t1.distance desc,t1.duration asc
order by t1.status desc,match_rank asc,t1.distance desc,t1.millisecond asc
</if>
<if test="gameMode == 30">
select t1.*,
......@@ -84,7 +84,7 @@
left join sport_user t2 on t1.player_id = t2.id
left join sport_user_training_log t3 on t3.game_mode = 30 and t1.id = t3.record_id
where t1.match_id = #{sourceId} and t1.finished = 1
order by t1.status desc,match_rank asc,t1.distance desc,t1.duration asc
order by t1.status desc,match_rank asc,t1.distance desc,t1.millisecond asc
</if>
<if test="gameMode == 50">
select t1.*,
......@@ -100,7 +100,7 @@
left join sport_user t2 on t1.player_id = t2.id
left join sport_user_training_log t3 on t3.game_mode = 50 and t1.id = t3.record_id
where t1.team_training_id = #{sourceId} and t1.finished = 1
order by t1.status desc,t1.training_rank asc,t1.distance desc,t1.duration asc
order by t1.status desc,t1.training_rank asc,t1.distance desc,t1.millisecond asc
</if>
<if test="gameMode == 60">
select t1.*,
......@@ -116,7 +116,7 @@
left join sport_user t2 on t1.player_id = t2.id
left join sport_user_training_log t3 on t3.game_mode = 60 and t1.id = t3.record_id
where t1.room_id = #{sourceId} and t1.finished = 1
order by t1.status desc,t1.match_rank asc,t1.distance desc,t1.duration asc
order by t1.status desc,t1.match_rank asc,t1.distance desc,t1.millisecond asc
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment