账套信息,代码优化!
This commit is contained in:
@@ -61,6 +61,9 @@ public class ShiroUtil {
|
||||
*/
|
||||
public static User getSubject(){
|
||||
Long userId = (Long) SecurityUtils.getSubject().getPrincipal();
|
||||
if (userId == null) {
|
||||
return null;
|
||||
}
|
||||
return userService.getById(userId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user