|
@@ -2,6 +2,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.SmsAssemblyCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
|
import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
|
|
@@ -38,7 +39,7 @@ public class CacheHelper {
|
|
|
SysPropertyCacheBean.class, "EC-CORE-BASIC",
|
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.SystemPropertyCache");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 根据考试记录id获取考试信息<br>
|
|
|
*
|
|
@@ -54,7 +55,9 @@ public class CacheHelper {
|
|
|
|
|
|
/**
|
|
|
* 根据短信配置代码获取短信配置详情
|
|
|
- * @param smsAssemblyCode 短信配置代码
|
|
|
+ *
|
|
|
+ * @param smsAssemblyCode
|
|
|
+ * 短信配置代码
|
|
|
* @return
|
|
|
*/
|
|
|
public static SmsAssemblyCacheBean getSmsAssembly(String smsAssemblyCode) {
|
|
@@ -63,4 +66,19 @@ public class CacheHelper {
|
|
|
"cn.com.qmth.examcloud.core.basic.dao.cache.SmsAssemblyCache");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取权限关联的角色集合
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param rootOrgId
|
|
|
+ * @param privilegeCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static PrivilegeRolesCacheBean getPrivilegeRoles(Long rootOrgId, String privilegeCode) {
|
|
|
+ return ObjectRedisCacheProcessor.get("$_PRIV_ROLES:",
|
|
|
+ new Object[]{rootOrgId, privilegeCode}, PrivilegeRolesCacheBean.class,
|
|
|
+ "EC-CORE-BASIC",
|
|
|
+ "cn.com.qmth.examcloud.core.basic.service.cache.PrrivilegeRolesCache");
|
|
|
+ }
|
|
|
+
|
|
|
}
|