WANG 5 ani în urmă
părinte
comite
e17bc05396

+ 10 - 10
src/main/java/cn/com/qmth/examcloud/support/cache/CacheHelper.java

@@ -4,8 +4,8 @@ import cn.com.qmth.examcloud.support.cache.bean.AppCacheBean;
 import cn.com.qmth.examcloud.support.cache.bean.BasePaperCacheBean;
 import cn.com.qmth.examcloud.support.cache.bean.CourseCacheBean;
 import cn.com.qmth.examcloud.support.cache.bean.ExamRecordPropertyCacheBean;
-import cn.com.qmth.examcloud.support.cache.bean.OrgExamConfigCacheBean;
-import cn.com.qmth.examcloud.support.cache.bean.OrgExamPropertyCacheBean;
+import cn.com.qmth.examcloud.support.cache.bean.ExamOrgSettingsCacheBean;
+import cn.com.qmth.examcloud.support.cache.bean.ExamOrgPropertyCacheBean;
 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;
@@ -149,10 +149,10 @@ public class CacheHelper {
 	 * @param orgId
 	 * @return
 	 */
-	public static OrgExamConfigCacheBean getOrgExamConfig(Long examId, Long orgId) {
-		return ObjectRedisCacheProcessor.get("E_ORG_EXAM_CONF:", new Object[]{examId, orgId},
-				OrgExamConfigCacheBean.class, "EC-CORE-EXAMWORK",
-				"cn.com.qmth.examcloud.core.examwork.service.cache.OrgExamConfigCache");
+	public static ExamOrgSettingsCacheBean getExamOrgSettings(Long examId, Long orgId) {
+		return ObjectRedisCacheProcessor.get("E_EXAM_ORG_SETTINGS:", new Object[]{examId, orgId},
+				ExamOrgSettingsCacheBean.class, "EC-CORE-EXAMWORK",
+				"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgSettingsCache");
 	}
 
 	/**
@@ -163,10 +163,10 @@ public class CacheHelper {
 	 * @param orgId
 	 * @return
 	 */
-	public static OrgExamPropertyCacheBean getOrgExamProperty(Long examId, Long orgId, String key) {
-		return ObjectRedisCacheProcessor.get("E_ORG_EXAM_PROP:", new Object[]{examId, orgId, key},
-				OrgExamConfigCacheBean.class, "EC-CORE-EXAMWORK",
-				"cn.com.qmth.examcloud.core.examwork.service.cache.OrgExamPropertyCache");
+	public static ExamOrgPropertyCacheBean getExamOrgProperty(Long examId, Long orgId, String key) {
+		return ObjectRedisCacheProcessor.get("E_EXAM_ORG_PROP:", new Object[]{examId, orgId, key},
+				ExamOrgSettingsCacheBean.class, "EC-CORE-EXAMWORK",
+				"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgPropertyCache");
 	}
 
 }

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/support/cache/bean/OrgExamPropertyCacheBean.java → src/main/java/cn/com/qmth/examcloud/support/cache/bean/ExamOrgPropertyCacheBean.java

@@ -9,7 +9,7 @@ import cn.com.qmth.examcloud.web.cache.RandomCacheBean;
  * @date 2019年8月8日
  * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
  */
-public class OrgExamPropertyCacheBean extends RandomCacheBean {
+public class ExamOrgPropertyCacheBean extends RandomCacheBean {
 
 	private static final long serialVersionUID = -8521363493722068369L;
 

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/support/cache/bean/OrgExamConfigCacheBean.java → src/main/java/cn/com/qmth/examcloud/support/cache/bean/ExamOrgSettingsCacheBean.java

@@ -11,7 +11,7 @@ import java.util.Date;
  * @date 2019年8月8日
  * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
  */
-public class OrgExamConfigCacheBean extends RandomCacheBean {
+public class ExamOrgSettingsCacheBean extends RandomCacheBean {
 
 	private static final long serialVersionUID = -8007446755455123835L;