空值处理

This commit is contained in:
tzg 2020-09-02 14:55:49 +08:00
parent 4f86b6d9ca
commit 0a51f7d743
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ public class DataScopeAspect
}
// 获取当前的用户
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
if (loginUser == null) {
return;
}
SysUser currentUser = loginUser.getUser();
if (currentUser != null)
{