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
e202e23c
Commit
e202e23c
authored
Sep 23, 2021
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加比赛创建删除接口
parent
6e68d241
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
DtoMatchBicycleResult.java
...api/business/match/bicycle/dto/DtoMatchBicycleResult.java
+2
-0
RespBaseUserInfo.java
...er/game/api/business/sport/user/dto/RespBaseUserInfo.java
+13
-0
MatchBicycleBusinessMapper.xml
...urces/mapper/match/bicycle/MatchBicycleBusinessMapper.xml
+4
-3
No files found.
game-api/src/main/java/com/antai/sport/http/server/game/api/business/match/bicycle/dto/DtoMatchBicycleResult.java
View file @
e202e23c
...
...
@@ -21,6 +21,8 @@ public class DtoMatchBicycleResult {
private
Long
matchId
;
@ApiModelProperty
(
"用户id"
)
private
Long
userId
;
@ApiModelProperty
(
"用户昵称"
)
private
String
nickname
;
@ApiModelProperty
(
"进入时间 yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
LocalDateTime
entryTime
;
...
...
game-api/src/main/java/com/antai/sport/http/server/game/api/business/sport/user/dto/RespBaseUserInfo.java
View file @
e202e23c
...
...
@@ -32,6 +32,9 @@ public class RespBaseUserInfo {
infoInitialized
=
sportUser
.
getInfoInitialized
();
roleInitialized
=
sportUser
.
getRoleInitialized
();
equipmentInitialized
=
sportUser
.
getEquipmentInitialized
();
totalClimbDistance
=
0
;
totalDistance
=
0
;
totalGameHours
=
0
;
}
@ApiModelProperty
(
value
=
"手机号"
)
...
...
@@ -75,4 +78,14 @@ public class RespBaseUserInfo {
@ApiModelProperty
(
value
=
"是否已经初始化设备"
)
private
Boolean
equipmentInitialized
;
@ApiModelProperty
(
value
=
"总骑行距离"
)
private
Integer
totalDistance
;
@ApiModelProperty
(
value
=
"总爬坡高度"
)
private
Integer
totalClimbDistance
;
@ApiModelProperty
(
value
=
"总骑行时间"
)
private
Integer
totalGameHours
;
}
game-api/src/main/resources/mapper/match/bicycle/MatchBicycleBusinessMapper.xml
View file @
e202e23c
...
...
@@ -22,9 +22,10 @@
<select
id=
"getMatchBicyclePlayerRecord"
resultType=
"com.antai.sport.http.server.game.api.business.match.bicycle.dto.DtoMatchBicycleResult"
>
select *
from match_bicycle_player
where deleted = 0
select t1.*,t2.nickname
from match_bicycle_player t1
left join sport_user t2 on t1.user_id = t2.id
where t1.deleted = 0 and t1.match_id = #{matchId}
order by match_rank
</select>
...
...
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