Skip to content

Commit

Permalink
空值处理
Browse files Browse the repository at this point in the history
  • Loading branch information
sproutcat committed Sep 2, 2020
1 parent 4f86b6d commit 0a51f7d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ protected void handleDataScope(final JoinPoint joinPoint)
}
// 获取当前的用户
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
if (loginUser == null) {
return;
}
SysUser currentUser = loginUser.getUser();
if (currentUser != null)
{
Expand Down

0 comments on commit 0a51f7d

Please sign in to comment.