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
80df33c5
Commit
80df33c5
authored
Sep 20, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名修改报名数量
parent
2b5608a1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
391 additions
and
388 deletions
+391
-388
antai-sport.ndm2
doc/antai-sport.ndm2
+383
-383
SeriesService.java
...ver/server/api/business/series/service/SeriesService.java
+8
-5
No files found.
doc/antai-sport.ndm2
View file @
80df33c5
This diff is collapsed.
Click to expand it.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/service/SeriesService.java
View file @
80df33c5
...
...
@@ -81,7 +81,7 @@ public class SeriesService {
}
SeriesDetailsVO
result
=
seriesConverter
.
toSeriesDetailVO
(
series
,
status
);
SeriesApply
apply
=
seriesBusinessMapper
.
getSeriesApply
(
id
,
sportUserId
);
if
(
apply
!=
null
)
{
if
(
apply
!=
null
)
{
result
.
setAreaId
(
apply
.
getAreaId
());
}
result
.
setNoticeList
(
seriesBusinessMapper
.
getSeriesNotice
(
id
));
...
...
@@ -111,6 +111,9 @@ public class SeriesService {
SeriesApply
seriesApply
=
seriesConverter
.
toSeriesApply
(
dto
);
seriesApply
.
setCreateTime
(
LocalDateTime
.
now
());
Series
series
=
seriesMapper
.
selectById
(
dto
.
getSeriesId
());
series
.
setApplyNum
(
series
.
getApplyNum
()
==
null
?
1
:
series
.
getApplyNum
()
+
1
);
seriesMapper
.
updateById
(
series
);
seriesApplyMapper
.
insert
(
seriesApply
);
}
...
...
@@ -324,10 +327,10 @@ public class SeriesService {
*/
public
SeriesMatchRecordInitVO
seriesKnockoutMatchRecordInit
(
SeriesKnockoutMatchRecordInitDTO
dto
)
{
QueryWrapper
<
SeriesMatchFinalists
>
finalistsQuery
=
new
QueryWrapper
<>();
finalistsQuery
.
lambda
().
eq
(
SeriesMatchFinalists:
:
getMatchId
,
dto
.
getMatchId
())
.
eq
(
SeriesMatchFinalists:
:
getSportUserId
,
dto
.
getSportUserId
());
finalistsQuery
.
lambda
().
eq
(
SeriesMatchFinalists:
:
getMatchId
,
dto
.
getMatchId
())
.
eq
(
SeriesMatchFinalists:
:
getSportUserId
,
dto
.
getSportUserId
());
SeriesMatchFinalists
finalists
=
seriesMatchFinalistsMapper
.
selectOne
(
finalistsQuery
);
if
(
finalists
==
null
)
{
if
(
finalists
==
null
)
{
throw
new
BusinessException
(
"抱歉,您没有入围当前比赛!"
);
}
SeriesMatchRecordInitVO
result
=
new
SeriesMatchRecordInitVO
();
...
...
@@ -355,7 +358,7 @@ public class SeriesService {
return
result
;
}
public
List
<
SeriesMatchForGameServerVO
>
getSeriesMatchForGameServer
(){
public
List
<
SeriesMatchForGameServerVO
>
getSeriesMatchForGameServer
()
{
return
seriesBusinessMapper
.
getSeriesMatchForGameServer
(
LocalDateTime
.
now
());
}
...
...
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