|
@@ -10,6 +10,7 @@ import cn.com.qmth.examcloud.support.cache.bean.ExamSettingsCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.OrgCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.PrivilegeRolesCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.QuestionCacheBean;
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.RootOrgCacheBean;
|
|
|
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.StudentCacheBean;
|
|
@@ -213,4 +214,17 @@ public class CacheHelper {
|
|
|
"EC-CORE-BASIC", "cn.com.qmth.examcloud.core.basic.service.cache.OrgCache");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 通过域名查询顶级机构
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param domain
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static RootOrgCacheBean getRootOrg(String domain) {
|
|
|
+ return ObjectRedisCacheProcessor.get("B_ROOT_ORG:", new Object[]{domain},
|
|
|
+ RootOrgCacheBean.class, "EC-CORE-BASIC",
|
|
|
+ "cn.com.qmth.examcloud.core.basic.service.cache.RootOrgCache");
|
|
|
+ }
|
|
|
+
|
|
|
}
|