"ruoyi-ui/src/git@ustchcs.com:gujinli1118/RuoYi-Vue.git" did not exist on "db193a46e8a8a5cdc0c4bcde7b2126af85b6ef0b"
Commit bebcc1b7 authored by 季圣华's avatar 季圣华
Browse files

屏蔽掉管理员的消息提醒功能

parent d93a02cb
...@@ -115,11 +115,14 @@ public class MsgService { ...@@ -115,11 +115,14 @@ public class MsgService {
Msg msg = JSONObject.parseObject(obj.toJSONString(), Msg.class); Msg msg = JSONObject.parseObject(obj.toJSONString(), Msg.class);
int result=0; int result=0;
try{ try{
User userInfo = userService.getCurrentUser();
if(!BusinessConstants.DEFAULT_MANAGER.equals(userInfo.getLoginName())) {
msg.setCreateTime(new Date()); msg.setCreateTime(new Date());
msg.setStatus("1"); msg.setStatus("1");
result=msgMapper.insertSelective(msg); result=msgMapper.insertSelective(msg);
logService.insertLog("消息", logService.insertLog("消息",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(msg.getMsgTitle()).toString(), request); new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(msg.getMsgTitle()).toString(), request);
}
}catch(Exception e){ }catch(Exception e){
logger.error("异常码[{}],异常提示[{}],异常[{}]", logger.error("异常码[{}],异常提示[{}],异常[{}]",
ExceptionConstants.DATA_WRITE_FAIL_CODE, ExceptionConstants.DATA_WRITE_FAIL_MSG,e); ExceptionConstants.DATA_WRITE_FAIL_CODE, ExceptionConstants.DATA_WRITE_FAIL_MSG,e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment