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
bebcc1b7
Commit
bebcc1b7
authored
Dec 13, 2021
by
季圣华
Browse files
屏蔽掉管理员的消息提醒功能
parent
d93a02cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/msg/MsgService.java
View file @
bebcc1b7
...
...
@@ -115,11 +115,14 @@ public class MsgService {
Msg
msg
=
JSONObject
.
parseObject
(
obj
.
toJSONString
(),
Msg
.
class
);
int
result
=
0
;
try
{
msg
.
setCreateTime
(
new
Date
());
msg
.
setStatus
(
"1"
);
result
=
msgMapper
.
insertSelective
(
msg
);
logService
.
insertLog
(
"消息"
,
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
).
append
(
msg
.
getMsgTitle
()).
toString
(),
request
);
User
userInfo
=
userService
.
getCurrentUser
();
if
(!
BusinessConstants
.
DEFAULT_MANAGER
.
equals
(
userInfo
.
getLoginName
()))
{
msg
.
setCreateTime
(
new
Date
());
msg
.
setStatus
(
"1"
);
result
=
msgMapper
.
insertSelective
(
msg
);
logService
.
insertLog
(
"消息"
,
new
StringBuffer
(
BusinessConstants
.
LOG_OPERATION_TYPE_ADD
).
append
(
msg
.
getMsgTitle
()).
toString
(),
request
);
}
}
catch
(
Exception
e
){
logger
.
error
(
"异常码[{}],异常提示[{}],异常[{}]"
,
ExceptionConstants
.
DATA_WRITE_FAIL_CODE
,
ExceptionConstants
.
DATA_WRITE_FAIL_MSG
,
e
);
...
...
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