@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)
所在当前租户用户
|
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
public List<Long> getUserByRole(long tenantId, long userId) throws TokenAuthenticationException, SQLException
public List<Long> getUsersByOrg(long tenantId, long userId) throws TokenAuthenticationException, SQLException
public List<Long> getUsersBySubOrg(long orgId) throws TokenAuthenticationException, SQLException
public List<Long> getUsersByMyAndSubOrg(long orgId) throws TokenAuthenticationException, SQLException
orgId - 组织IDTokenAuthenticationExceptionSQLExceptionpublic List<Long> getSubUsers(long userId) throws TokenAuthenticationException, BusiException, SQLException
@Comment(value="\u751f\u6210\u4e0b\u5c5e\u7528\u6237\u5305\u62ec\u81ea\u5df1\u7684SQL") public String power(String powerField) throws TokenAuthenticationException, BusiException, SQLException
powerField - TokenAuthenticationExceptionBusiExceptionSQLException@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 - 参数TokenAuthenticationExceptionBusiExceptionSQLException@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 - 参数TokenAuthenticationExceptionSQLExceptionBusiExceptionCopyright © 2025. All rights reserved.