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
3fb99a94
Commit
3fb99a94
authored
Oct 26, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加自己的排名
parent
815099a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
SeriesService.java
...ver/server/api/business/series/service/SeriesService.java
+2
-1
SeriesBusinessMapper.xml
...src/main/resources/mapper/series/SeriesBusinessMapper.xml
+5
-4
No files found.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/service/SeriesService.java
View file @
3fb99a94
...
...
@@ -157,8 +157,9 @@ public class SeriesService {
SeriesRoundRank
myRankData
=
seriesRoundRankMapper
.
selectOne
(
rankQuery
);
if
(
myRankData
!=
null
)
{
SeriesMatchPlayerRecord
record
=
seriesMatchPlayerRecordMapper
.
selectById
(
myRankData
.
getRecordId
());
Integer
myRank
=
seriesBusinessMapper
.
getMySeriesQualifyingMatchRank
(
roundId
,
areaId
,
myRankData
.
getDuration
(),
myRankData
.
getCreateTime
());
record
.
getMillisecond
(),
myRankData
.
getCreateTime
());
result
.
setMyRank
(
myRank
);
}
}
...
...
server-api/src/main/resources/mapper/series/SeriesBusinessMapper.xml
View file @
3fb99a94
...
...
@@ -45,7 +45,7 @@
</select>
<select
id=
"getBestResult"
resultType=
"java.lang.Integer"
>
select min(
duration
)
select min(
millisecond
)
from series_match_player_record t1
where t1.round_id = #{roundId} and t1.player_id = #{sportUserId} and t1.status = 20
</select>
...
...
@@ -87,9 +87,10 @@
<select
id=
"getMySeriesQualifyingMatchRank"
resultType=
"java.lang.Integer"
>
select count(1) + 1
from series_round_rank
where round_id = #{roundId} and area_id = #{areaId}
and (duration
<
#{duration} or (duration = #{duration} and create_time
<
#{createTime}))
from series_round_rank t1
left join series_match_player_record t2 on t1.record_id = t2.id
where t1.round_id = #{roundId} and t1.area_id = #{areaId}
and (t2.millisecond
<
#{duration} or (t2.millisecond = #{duration} and t1.create_time
<
#{createTime}))
</select>
<select
id=
"getSeriesQualifyingMatchRank"
...
...
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