Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
micro_app
gk
Commits
d5149a5e
Commit
d5149a5e
authored
Jul 02, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复签到判断,积分只累计报名积分
parent
bbb22a80
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
UserPointMapper.xml
...dlbridge/jadp/plugins/cmpt/dao/mapper/UserPointMapper.xml
+1
-0
JoyfulRoadController.java
.../dlbridge/jadp/plugins/cmpt/web/JoyfulRoadController.java
+4
-0
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/UserPointMapper.xml
View file @
d5149a5e
...
...
@@ -20,6 +20,7 @@
raceenroll.pointrecord
WHERE
userId = #{userId}
AND type = 3
AND isNegative = #{isNegative}
ORDER BY createTime DESC
LIMIT #{offset}, #{pageCount}
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/JoyfulRoadController.java
View file @
d5149a5e
...
...
@@ -182,6 +182,10 @@ public class JoyfulRoadController {
@PostMapping
(
value
=
"/insJoyfulCheckinRecords"
)
@ApiOperation
(
value
=
"活动签到打卡"
,
notes
=
"活动签到打卡"
,
tags
=
"活动签到打卡"
)
public
Result
insJoyfulCheckinRecords
(
@RequestBody
JoyfulCheckinRecords
joyfulCheckinRecords
){
List
<
JoyfulCheckinRecords
>
records
=
joyfulCheckinRecordsService
.
getJoyfulCheckinRecordsList
(
joyfulCheckinRecords
.
getUserId
(),
1
,
10
);
if
(
records
!=
null
&&
!
records
.
isEmpty
()){
return
Result
.
fail
().
setMsg
(
"已签到成功!"
);
}
int
result
=
joyfulCheckinRecordsService
.
insJoyfulCheckinRecords
(
joyfulCheckinRecords
);
if
(
result
!=
1
)
{
return
Result
.
fail
().
setMsg
(
"新增失败!"
);
...
...
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