|
@@ -3,6 +3,7 @@ package cn.com.qmth.examcloud.support.cache;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.AppCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExamRecordPropertyCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.PrivilegeRolesCacheBean;
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.RootOrgPrivilegesCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.SmsAssemblyCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
|
import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
|
|
@@ -81,4 +82,17 @@ public class CacheHelper {
|
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.PrrivilegeRolesCache");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取顶级机构关联的角色集合
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param rootOrgId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static RootOrgPrivilegesCacheBean getRootOrgPrivileges(Long rootOrgId) {
|
|
|
+ return ObjectRedisCacheProcessor.get("$__ROOT_ORG_PRIVS:", new Object[]{rootOrgId},
|
|
|
+ PrivilegeRolesCacheBean.class, "EC-CORE-BASIC",
|
|
|
+ "cn.com.qmth.examcloud.core.basic.service.cache.RootOrgPrrivilegesCache");
|
|
|
+ }
|
|
|
+
|
|
|
}
|