Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
5168a11b
Commit
5168a11b
authored
Jun 09, 2020
by
季圣华
Browse files
优化日志模块
parent
b6f79820
Changes
22
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/user/UserService.java
View file @
5168a11b
...
...
@@ -121,7 +121,8 @@ public class UserService {
int
result
=
0
;
try
{
result
=
userMapper
.
insertSelective
(
user
);
logService
.
insertLog
(
"用户"
,
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
,
request
);
logService
.
insertLog
(
"用户"
,
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
).
append
(
user
.
getLoginName
()).
toString
(),
request
);
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
e
);
}
...
...
@@ -144,7 +145,7 @@ public class UserService {
try
{
result
=
userMapper
.
updateByPrimaryKeySelective
(
user
);
logService
.
insertLog
(
"用户"
,
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
).
append
(
id
).
toString
(),
request
);
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
).
append
(
user
.
getLoginName
()
).
toString
(),
request
);
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
e
);
}
...
...
src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java
View file @
5168a11b
...
...
@@ -86,8 +86,7 @@ public class UserBusinessService {
int
result
=
0
;
try
{
result
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
logService
.
insertLog
(
"关联关系"
,
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
).
append
(
id
).
toString
(),
request
);
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
,
request
);
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
e
);
}
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
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