部门非空条件判断

This commit is contained in:
RuoYi
2018-07-15 10:31:01 +08:00
parent 2f6e6736ca
commit 116f3ac6fc
2 changed files with 5 additions and 20 deletions

View File

@ -98,7 +98,11 @@ public class LogAspect
if (currentUser != null)
{
operLog.setOperName(currentUser.getLoginName());
operLog.setDeptName(currentUser.getDept().getDeptName());
if (StringUtils.isNotNull(currentUser.getDept())
&& StringUtils.isEmpty(currentUser.getDept().getDeptName()))
{
operLog.setDeptName(currentUser.getDept().getDeptName());
}
}
if (e != null)