Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
point-project
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
point-project
Commits
1136f639
Commit
1136f639
authored
Jan 09, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
信箱收集功能
parent
380a4845
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cloud-point/src/main/java/com/yizhi/application/controller/PointListenerController.java
+5
-3
No files found.
cloud-point/src/main/java/com/yizhi/application/controller/PointListenerController.java
View file @
1136f639
package
com
.
yizhi
.
application
.
controller
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.yizhi.application.constant.PointEventEnum
;
import
com.yizhi.application.domain.*
;
...
...
@@ -353,9 +354,10 @@ public class PointListenerController {
return
true
;
}
@ApiOperation
(
value
=
"新增
签到
"
)
@ApiOperation
(
value
=
"新增
积分
"
)
@GetMapping
(
value
=
"/addPoint"
)
public
boolean
addPoint
(
@RequestParam
(
"code"
)
String
code
,
@RequestParam
(
"sourceId"
)
Long
sourceId
)
{
LOGGER
.
info
(
"新增积分{},{}"
,
code
,
sourceId
);
RequestContext
res
=
ContextHolder
.
get
();
Long
accountId
=
res
.
getAccountId
();
Long
siteId
=
res
.
getSiteId
();
...
...
@@ -368,10 +370,10 @@ public class PointListenerController {
pointActivity
.
setState
(
2
);
EntityWrapper
<
PointActivity
>
entityWrapper
=
new
EntityWrapper
<
PointActivity
>();
PointActivity
vo
=
pointActivityService
.
selectOne
(
entityWrapper
);
if
(
vo
!=
null
){
if
(
vo
!=
null
&&
ObjectUtil
.
isNotEmpty
(
vo
.
getCode
())
){
try
{
PointParamVO
pointParamVO
=
new
PointParamVO
();
pointParamVO
.
setEventName
(
code
);
//事件名称
pointParamVO
.
setEventName
(
vo
.
getCode
()
);
//事件名称
pointParamVO
.
setActivityType
(
vo
.
getActivityType
());
//事件类型
pointParamVO
.
setActivitySource
(
"PC"
);
//学习活动来源
pointParamVO
.
setActivityName
(
vo
.
getActivityName
());
//学习活动名称
...
...
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