@Component public class OrgCache extends Object
| 构造器和说明 |
|---|
OrgCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
清空组织缓存
|
Map<String,Object> |
getOrg(Long orgId)
获取机构信息列表
|
String |
getOrgName(Object orgId)
根据组织ID获取组织名称
|
String |
getOrgPath(Object orgId)
根据组织ID获取组织路径
|
List<Map<String,Object>> |
getOrgs(List<Long> orgs)
获取机构信息
|
List<Long> |
getSubOrg(Long orgId)
获取子机构
|
void |
reload()
启动后,加载组织机构缓存
|
void |
reload(Object orgId)
根据组织ID重新加载组织到缓存
|
void |
remove(Object orgId)
清空组织缓存
|
@Comment(value="\u52a0\u8f7d\u7ec4\u7ec7\u673a\u6784\u7f13\u5b58")
public void reload()
throws SQLException
SQLExceptionpublic List<Long> getSubOrg(Long orgId) throws SQLException
orgId - SQLException@Comment(value="\u6839\u636e\u7ec4\u7ec7ID\u91cd\u65b0\u52a0\u8f7d\u7ec4\u7ec7\u5230\u7f13\u5b58")
public void reload(@Comment(value="\u7ec4\u7ec7ID")
Object orgId)
throws SQLException
orgId - 组织IDSQLExceptionpublic List<Map<String,Object>> getOrgs(List<Long> orgs) throws SQLException
orgs - SQLExceptionpublic Map<String,Object> getOrg(Long orgId) throws SQLException
orgId - SQLException@Comment(value="\u6839\u636e\u7ec4\u7ec7ID\u83b7\u53d6\u7ec4\u7ec7\u540d\u79f0") public String getOrgName(@Comment(value="\u7ec4\u7ec7ID") Object orgId) throws SQLException
orgId - 组织IDSQLException@Comment(value="\u6839\u636e\u7ec4\u7ec7ID\u83b7\u53d6\u7ec4\u7ec7\u8def\u5f84") public String getOrgPath(@Comment(value="\u7ec4\u7ec7ID") Object orgId) throws SQLException
orgId - 组织IDSQLException@Comment(value="\u6e05\u7a7a\u7ec4\u7ec7\u7f13\u5b58") public void clear()
@Comment(value="\u6e05\u7a7a\u7ec4\u7ec7\u7f13\u5b58")
public void remove(@Comment(value="\u7ec4\u7ec7ID")
Object orgId)
orgId - 组织IDCopyright © 2025. All rights reserved.