Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antai-sport
antai-sport-http-server
Commits
815099a1
Commit
815099a1
authored
Oct 25, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改排名时间逻辑使用毫秒
parent
feeb8de0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
SeriesService.java
...ver/server/api/business/series/service/SeriesService.java
+2
-2
SportUserTrainingLogBusinessMapper.xml
...mapper/traininglog/SportUserTrainingLogBusinessMapper.xml
+4
-4
No files found.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/service/SeriesService.java
View file @
815099a1
...
...
@@ -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
(
"t
1.duration
"
,
true
));
pageParam
.
addOrder
(
new
OrderItem
(
"t
2.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
();
...
...
server-api/src/main/resources/mapper/traininglog/SportUserTrainingLogBusinessMapper.xml
View file @
815099a1
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment