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
"src/main/java/git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "b08d349b45605e464c83ae7ca748355a35297f10"
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 {
...
@@ -121,7 +121,8 @@ public class UserService {
int
result
=
0
;
int
result
=
0
;
try
{
try
{
result
=
userMapper
.
insertSelective
(
user
);
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
){
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
e
);
JshException
.
writeFail
(
logger
,
e
);
}
}
...
@@ -144,7 +145,7 @@ public class UserService {
...
@@ -144,7 +145,7 @@ public class UserService {
try
{
try
{
result
=
userMapper
.
updateByPrimaryKeySelective
(
user
);
result
=
userMapper
.
updateByPrimaryKeySelective
(
user
);
logService
.
insertLog
(
"用户"
,
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
){
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
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 {
...
@@ -86,8 +86,7 @@ public class UserBusinessService {
int
result
=
0
;
int
result
=
0
;
try
{
try
{
result
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
result
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
logService
.
insertLog
(
"关联关系"
,
logService
.
insertLog
(
"关联关系"
,
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
,
request
);
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_EDIT
).
append
(
id
).
toString
(),
request
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
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