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
700d692c
Commit
700d692c
authored
Apr 25, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加查看报名人员接口
parent
d4aff474
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
4 deletions
+28
-4
SimpleMatchController.java
...usiness/simplematch/controller/SimpleMatchController.java
+6
-0
RespSimpleMatchInfo.java
...ver/api/business/simplematch/dto/RespSimpleMatchInfo.java
+6
-4
SimpleMatchBusinessMapper.java
...usiness/simplematch/mapper/SimpleMatchBusinessMapper.java
+2
-0
SimpleMatchService.java
.../api/business/simplematch/service/SimpleMatchService.java
+10
-0
SimpleMatchBusinessMapper.xml
...esources/mapper/simplematch/SimpleMatchBusinessMapper.xml
+4
-0
No files found.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/simplematch/controller/SimpleMatchController.java
View file @
700d692c
...
@@ -79,4 +79,10 @@ public class SimpleMatchController {
...
@@ -79,4 +79,10 @@ public class SimpleMatchController {
return
success
(
simpleMatchService
.
rank
(
matchId
));
return
success
(
simpleMatchService
.
rank
(
matchId
));
}
}
@ApiOperation
(
"获取赛事报名人信息"
)
@PostMapping
(
"/{matchId}/register/list"
)
public
ResponseEntity
<
Result
<
List
<
Long
>>>
getRegisterList
(
@PathVariable
(
"matchId"
)
Long
matchId
)
{
return
success
(
simpleMatchService
.
getRegisterList
(
matchId
));
}
}
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/simplematch/dto/RespSimpleMatchInfo.java
View file @
700d692c
...
@@ -31,11 +31,13 @@ public class RespSimpleMatchInfo {
...
@@ -31,11 +31,13 @@ public class RespSimpleMatchInfo {
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
LocalDateTime
endTime
;
private
LocalDateTime
endTime
;
@ApiModelProperty
(
"长度"
)
@ApiModelProperty
(
"长度"
)
p
ublic
BigDecimal
distance
;
p
rivate
BigDecimal
distance
;
@ApiModelProperty
(
"爬坡高度"
)
@ApiModelProperty
(
"爬坡高度"
)
p
ublic
BigDecimal
climbDistance
;
p
rivate
BigDecimal
climbDistance
;
@ApiModelProperty
(
"是否已报名,只有当按用户查询时有效"
)
@ApiModelProperty
(
"是否已报名,只有当按用户查询时有效"
)
p
ublic
Boolean
registered
;
p
rivate
Boolean
registered
;
@ApiModelProperty
(
"报名数量"
)
@ApiModelProperty
(
"报名数量"
)
public
Integer
registeredNum
;
private
Integer
registeredNum
;
@ApiModelProperty
(
"赛事描述"
)
private
String
description
;
}
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/simplematch/mapper/SimpleMatchBusinessMapper.java
View file @
700d692c
...
@@ -13,4 +13,6 @@ public interface SimpleMatchBusinessMapper {
...
@@ -13,4 +13,6 @@ public interface SimpleMatchBusinessMapper {
List
<
RespSimpleMatchList
>
getUnFinishedSimpleMatchListForServer
(
@Param
(
"now"
)
LocalDateTime
now
);
List
<
RespSimpleMatchList
>
getUnFinishedSimpleMatchListForServer
(
@Param
(
"now"
)
LocalDateTime
now
);
List
<
RespSimpleMatchRank
>
getSimpleMatchRank
(
@Param
(
"matchId"
)
Long
matchId
);
List
<
RespSimpleMatchRank
>
getSimpleMatchRank
(
@Param
(
"matchId"
)
Long
matchId
);
List
<
Long
>
getRegisterList
(
@Param
(
"matchId"
)
Long
matchId
);
}
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/simplematch/service/SimpleMatchService.java
View file @
700d692c
...
@@ -203,4 +203,14 @@ public class SimpleMatchService {
...
@@ -203,4 +203,14 @@ public class SimpleMatchService {
public
List
<
RespSimpleMatchRank
>
rank
(
Long
matchId
)
{
public
List
<
RespSimpleMatchRank
>
rank
(
Long
matchId
)
{
return
simpleMatchBusinessMapper
.
getSimpleMatchRank
(
matchId
);
return
simpleMatchBusinessMapper
.
getSimpleMatchRank
(
matchId
);
}
}
/**
* 赛事注册列表查看
*
* @param matchId
* @return
*/
public
List
<
Long
>
getRegisterList
(
Long
matchId
)
{
return
simpleMatchBusinessMapper
.
getRegisterList
(
matchId
);
}
}
}
server-api/src/main/resources/mapper/simplematch/SimpleMatchBusinessMapper.xml
View file @
700d692c
...
@@ -40,4 +40,8 @@
...
@@ -40,4 +40,8 @@
where t1.match_id = #{matchId}
where t1.match_id = #{matchId}
order by match_rank asc
order by match_rank asc
</select>
</select>
<select
id=
"getRegisterList"
resultType=
"java.lang.Long"
>
select player_id from simple_match_player_regist_log t1 where t1.match_id = #{matchId}
</select>
</mapper>
</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