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
2f57bca9
Commit
2f57bca9
authored
Jul 11, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
e907eef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
HmLinkController.java
...gic/haoban/manage/web/controller/hm/HmLinkController.java
+11
-2
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmLinkController.java
View file @
2f57bca9
...
@@ -7,6 +7,8 @@ import java.util.Map;
...
@@ -7,6 +7,8 @@ import java.util.Map;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -51,6 +53,8 @@ import com.gic.web.common.utils.SessionContextUtils;
...
@@ -51,6 +53,8 @@ import com.gic.web.common.utils.SessionContextUtils;
@RequestMapping
(
"/hm/link"
)
@RequestMapping
(
"/hm/link"
)
public
class
HmLinkController
{
public
class
HmLinkController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
HmLinkController
.
class
);
@Autowired
@Autowired
private
HmLinkApiService
hmLinkApiService
;
private
HmLinkApiService
hmLinkApiService
;
@Autowired
@Autowired
...
@@ -71,15 +75,17 @@ public class HmLinkController {
...
@@ -71,15 +75,17 @@ public class HmLinkController {
dto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
dto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
dto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
dto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
ServiceResponse
<
String
>
resp
=
this
.
hmLinkApiService
.
save
(
dto
);
ServiceResponse
<
String
>
resp
=
this
.
hmLinkApiService
.
save
(
dto
);
if
(
resp
.
isSuccess
())
{
//
if (resp.isSuccess()) {
String
logContent
=
"新增引流链接【"
+
resp
.
getResult
()
+
"-"
+
dto
.
getName
()
+
"】"
;
String
logContent
=
"新增引流链接【"
+
resp
.
getResult
()
+
"-"
+
dto
.
getName
()
+
"】"
;
logger
.
info
(
logContent
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
//
}
return
RestResponse
.
successResult
();
return
RestResponse
.
successResult
();
}
}
@RequestMapping
(
"update"
)
@RequestMapping
(
"update"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
RECHAGE_CENTER
,
optType
=
GicLogRecordOptTypeEnum
.
RECHAGE_MODIFY_OPT
,
userFunc
=
LogRecordUserService
.
class
,
optPage
=
"活码"
)
public
RestResponse
<
Object
>
update
(
@RequestBody
HmLinkDTO
dto
)
{
public
RestResponse
<
Object
>
update
(
@RequestBody
HmLinkDTO
dto
)
{
Long
linkId
=
dto
.
getLinkId
();
Long
linkId
=
dto
.
getLinkId
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
@@ -90,6 +96,9 @@ public class HmLinkController {
...
@@ -90,6 +96,9 @@ public class HmLinkController {
dto
.
setModifierName
(
loginUser
.
getClerkName
());
dto
.
setModifierName
(
loginUser
.
getClerkName
());
this
.
hmLinkApiService
.
save
(
dto
);
this
.
hmLinkApiService
.
save
(
dto
);
String
logContent
=
this
.
getLog
(
oldDTO
,
dto
);
String
logContent
=
this
.
getLog
(
oldDTO
,
dto
);
logger
.
info
(
logContent
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
return
RestResponse
.
successResult
();
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