添加pc端es查询岗位方法

This commit is contained in:
sh
2025-10-28 10:47:03 +08:00
parent ce2d9328c3
commit ec09ede7eb
11 changed files with 215 additions and 8 deletions

View File

@@ -61,4 +61,17 @@ public class RoleUtils {
return null;
}
}
/**
* 获取用户角色
* @return
*/
public static String getAppIscompanyUser(){
LoginSiteUser loginSiteUser = SiteSecurityUtils.getLoginUser();
AppUser appUser = loginSiteUser.getUser();
if (appUser == null) {
throw new IllegalArgumentException("用户信息为空,无法获取身份证号"); // 用户信息为空仍抛异常,避免空指针
}
return appUser.getIsCompanyUser();
}
}