筛选功能

This commit is contained in:
menxipeng
2025-08-19 15:08:12 +08:00
parent ef6b959ab5
commit 7c467fe498
6 changed files with 80 additions and 2 deletions

View File

@@ -28,7 +28,11 @@ public class SecurityUtils
{
try
{
return getLoginUser().getUserId();
LoginUser logUse = getLoginUser();
if (logUse != null){
return logUse.getUserId();
}
return null;
}
catch (Exception e)
{
@@ -75,7 +79,10 @@ public class SecurityUtils
{
try
{
return (LoginUser) getAuthentication().getPrincipal();
if (getAuthentication().getPrincipal() instanceof LoginUser){
return (LoginUser) getAuthentication().getPrincipal();
}
return null;
}
catch (Exception e)
{