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
7e02b638
Commit
7e02b638
authored
Jul 28, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常赛列表增加报名人数
parent
fbfbc4d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
RespSimpleMatchList.java
...ver/api/business/simplematch/dto/RespSimpleMatchList.java
+2
-0
SimpleMatchBusinessMapper.xml
...esources/mapper/simplematch/SimpleMatchBusinessMapper.xml
+6
-0
No files found.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/simplematch/dto/RespSimpleMatchList.java
View file @
7e02b638
...
...
@@ -39,4 +39,6 @@ public class RespSimpleMatchList {
public
BigDecimal
climbDistance
;
@ApiModelProperty
(
"是否已报名,只有当按用户查询时有效"
)
public
Boolean
registered
;
@ApiModelProperty
(
"报名人数"
)
public
Integer
registeredNum
;
}
server-api/src/main/resources/mapper/simplematch/SimpleMatchBusinessMapper.xml
View file @
7e02b638
...
...
@@ -7,6 +7,7 @@
from (
select ifnull(t2.base_order, 0) registered,
t1.start_time as show_time,
ifnull(t3.registered_num, 0) as registered_num,
t1.*
from simple_match t1
left join (
...
...
@@ -14,6 +15,11 @@
from simple_match_player_regist_log j1
where j1.player_id = #{userId}
) t2 on t1.id = t2.match_id
left join (
select j1.match_id, count(1) as registered_num
from simple_match_player_regist_log j1
group by j1.match_id
) t3 on t1.id = t3.match_id
where t1.end_time
>
#{now}
and t1.deleted = 0
and t1.status = 20
...
...
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