@Component public class SohelpPower extends Object
| 构造器和说明 |
|---|
SohelpPower() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Long> |
getSubUsers(long userId)
根据用户配置的数据权限类型,获取其下属用户列表(不包括自己)。
|
List<Long> |
getUserByRole(long tenantId,
long userId)
获取用户所属岗位中的其他用户列表。
|
List<Long> |
getUsersByMyAndSubOrg(long orgId)
获取下属组织(含当前组织)下的所有用户。
|
List<Long> |
getUsersByOrg(long tenantId,
long userId)
获取用户所在所有部门下的全部用户。
|
List<Long> |
getUsersBySubOrg(long orgId)
获取下属组织(不含当前组织)下的所有用户。
|
List<Long> |
getUsersByTenant(long tenantId)
获取指定租户下的所有用户ID列表。
|
List<Long> |
power(PowerTypeEnum powerTypeEnum,
Map<String,Object> paramMap)
根据权限枚举类型获取对应范围的用户列表。
|
String |
power(String powerField)
构造一个SQL片段,表示当前用户及其下属用户的过滤条件。
|
List<Long> |
power(String powerType,
Map<String,Object> paramMap)
根据权限类型字符串获取对应范围的用户列表。
|
public List<Long> getUsersByTenant(long tenantId) throws TokenAuthenticationException, SQLException
tenantId - 租户IDTokenAuthenticationException - 认证异常SQLException - SQL执行异常public List<Long> getUserByRole(long tenantId, long userId) throws TokenAuthenticationException, SQLException
tenantId - 租户IDuserId - 当前用户IDTokenAuthenticationException - 认证异常SQLException - SQL执行异常public List<Long> getUsersByOrg(long tenantId, long userId) throws TokenAuthenticationException, SQLException
tenantId - 租户IDuserId - 当前用户IDTokenAuthenticationException - 认证异常SQLException - SQL执行异常public List<Long> getUsersBySubOrg(long orgId) throws TokenAuthenticationException, SQLException
orgId - 组织IDTokenAuthenticationException - 认证异常SQLException - SQL执行异常public List<Long> getUsersByMyAndSubOrg(long orgId) throws TokenAuthenticationException, SQLException
orgId - 组织IDTokenAuthenticationException - 认证异常SQLException - SQL执行异常public List<Long> getSubUsers(long userId) throws TokenAuthenticationException, BusiException, SQLException
userId - 当前用户IDTokenAuthenticationException - 认证异常BusiException - 业务逻辑异常SQLException - SQL执行异常@Comment(value="\u751f\u6210\u4e0b\u5c5e\u7528\u6237\u5305\u62ec\u81ea\u5df1\u7684SQL") public String power(String powerField) throws TokenAuthenticationException, BusiException, SQLException
powerField - 字段名,如"user_id"TokenAuthenticationException - 认证异常BusiException - 业务逻辑异常SQLException - SQL执行异常@Comment(value="\u6839\u636e\u7c7b\u578b\u83b7\u53d6\u8303\u56f4\u7528\u6237") public List<Long> power(String powerType, Map<String,Object> paramMap) throws TokenAuthenticationException, BusiException, SQLException
powerType - 权限类型的编码字符串paramMap - 查询参数映射表TokenAuthenticationException - 认证异常BusiException - 业务逻辑异常SQLException - SQL执行异常@Comment(value="\u6839\u636e\u7c7b\u578b\u83b7\u53d6\u8303\u56f4\u7528\u6237\uff0c\u5305\u62ec\u6211\u8d1f\u8d23\u7684\u3001\u4e0b\u5c5e\u7528\u6237\u3001\u4e0b\u5c5e\u7ec4\u7ec7\u3001\u4e0b\u5c5e\u5c97\u4f4d") public List<Long> power(PowerTypeEnum powerTypeEnum, Map<String,Object> paramMap) throws TokenAuthenticationException, SQLException, BusiException
powerTypeEnum - 权限类型枚举paramMap - 查询参数映射表TokenAuthenticationException - 认证异常SQLException - SQL执行异常BusiException - 业务逻辑异常Copyright © 2026. All rights reserved.