Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
e907eef8
Commit
e907eef8
authored
Jul 11, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
74dce617
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
HmLinkController.java
...gic/haoban/manage/web/controller/hm/HmLinkController.java
+9
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmLinkController.java
View file @
e907eef8
...
...
@@ -30,8 +30,14 @@ import com.gic.haoban.manage.api.service.hm.HmPageApiService;
import
com.gic.haoban.manage.api.service.out.WelcomeApiService
;
import
com.gic.haoban.manage.web.vo.hm.HmLinkListVO
;
import
com.gic.haoban.manage.web.vo.hm.HmLinkVO
;
import
com.gic.log.record.anno.GicLogRecord
;
import
com.gic.log.record.service.LogRecordUserService
;
import
com.gic.log.record.util.GicLogRecordCategoryEnum
;
import
com.gic.log.record.util.GicLogRecordEvaluationContext
;
import
com.gic.log.record.util.GicLogRecordOptTypeEnum
;
import
com.gic.member.tag.api.dto.MemberTagItemDTO
;
import
com.gic.member.tag.api.service.MemberTagApiService
;
import
com.gic.web.common.utils.SessionContextUtils
;
/**
*
...
...
@@ -55,6 +61,7 @@ public class HmLinkController {
private
MemberTagApiService
memberTagApiService
;
@RequestMapping
(
"add"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
RECHAGE_CENTER
,
optType
=
GicLogRecordOptTypeEnum
.
RECHAGE_MODIFY_OPT
,
userFunc
=
LogRecordUserService
.
class
,
optPage
=
"活码"
)
public
RestResponse
<
Object
>
save
(
@RequestBody
HmLinkDTO
dto
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
dto
.
setCreatorId
(
loginUser
.
getClerkId
());
...
...
@@ -66,6 +73,8 @@ public class HmLinkController {
ServiceResponse
<
String
>
resp
=
this
.
hmLinkApiService
.
save
(
dto
);
if
(
resp
.
isSuccess
())
{
String
logContent
=
"新增引流链接【"
+
resp
.
getResult
()
+
"-"
+
dto
.
getName
()
+
"】"
;
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
return
RestResponse
.
successResult
();
}
...
...
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