|
@@ -55,23 +55,10 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static SysPropertyCacheBean getSysProperty(String propKey) {
|
|
public static SysPropertyCacheBean getSysProperty(String propKey) {
|
|
return ObjectRedisCacheProcessor.get("$_SYS_PROP:", new Object[]{propKey},
|
|
return ObjectRedisCacheProcessor.get("$_SYS_PROP:", new Object[]{propKey},
|
|
- SysPropertyCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ SysPropertyCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.SystemPropertyCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.SystemPropertyCache");
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 根据考试记录id获取考试信息<br>
|
|
|
|
- *
|
|
|
|
- * @param propKey
|
|
|
|
- * @return
|
|
|
|
- * @author WANGWEI
|
|
|
|
- */
|
|
|
|
- public static ExamRecordPropertyCacheBean getExamRecordProperty(Long examRecordDataId) {
|
|
|
|
- return ObjectRedisCacheProcessor.get("OE_EXAM_RECORD_PROP:", new Object[]{examRecordDataId},
|
|
|
|
- ExamRecordPropertyCacheBean.class, "EC-CORE-OE-STUDENT",
|
|
|
|
- "cn.com.qmth.examcloud.core.oe.common.cache.ExamRecordPropertyCache");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 根据短信配置代码获取短信配置详情
|
|
* 根据短信配置代码获取短信配置详情
|
|
*
|
|
*
|
|
@@ -81,7 +68,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static SmsAssemblyCacheBean getSmsAssembly(String smsAssemblyCode) {
|
|
public static SmsAssemblyCacheBean getSmsAssembly(String smsAssemblyCode) {
|
|
return ObjectRedisCacheProcessor.get("B_SMS_ASSEMBLY_PROP:", new Object[]{smsAssemblyCode},
|
|
return ObjectRedisCacheProcessor.get("B_SMS_ASSEMBLY_PROP:", new Object[]{smsAssemblyCode},
|
|
- SmsAssemblyCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ SmsAssemblyCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.SmsAssemblyCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.SmsAssemblyCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -96,7 +83,7 @@ public class CacheHelper {
|
|
public static PrivilegeRolesCacheBean getPrivilegeRoles(Long rootOrgId, String privilegeCode) {
|
|
public static PrivilegeRolesCacheBean getPrivilegeRoles(Long rootOrgId, String privilegeCode) {
|
|
return ObjectRedisCacheProcessor.get("$_PRIV_ROLES:",
|
|
return ObjectRedisCacheProcessor.get("$_PRIV_ROLES:",
|
|
new Object[]{rootOrgId, privilegeCode}, PrivilegeRolesCacheBean.class,
|
|
new Object[]{rootOrgId, privilegeCode}, PrivilegeRolesCacheBean.class,
|
|
- "EC-CORE-BASIC",
|
|
|
|
|
|
+ "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.PrrivilegeRolesCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.PrrivilegeRolesCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -109,7 +96,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static RootOrgPrivilegesCacheBean getRootOrgPrivileges(Long rootOrgId) {
|
|
public static RootOrgPrivilegesCacheBean getRootOrgPrivileges(Long rootOrgId) {
|
|
return ObjectRedisCacheProcessor.get("B_ROOT_ORG_PRIVS:", new Object[]{rootOrgId},
|
|
return ObjectRedisCacheProcessor.get("B_ROOT_ORG_PRIVS:", new Object[]{rootOrgId},
|
|
- PrivilegeRolesCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ PrivilegeRolesCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.RootOrgPrrivilegesCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.RootOrgPrrivilegesCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -122,7 +109,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ExtractConfigCacheBean getExtractConfig(Long examId, String courseCode) {
|
|
public static ExtractConfigCacheBean getExtractConfig(Long examId, String courseCode) {
|
|
return ObjectRedisCacheProcessor.get("Q_EXTRACT_CONFIG:", new Object[]{examId, courseCode},
|
|
return ObjectRedisCacheProcessor.get("Q_EXTRACT_CONFIG:", new Object[]{examId, courseCode},
|
|
- ExtractConfigCacheBean.class, "EC-CORE-QUESTION",
|
|
|
|
|
|
+ ExtractConfigCacheBean.class, "EC-CORE-QUESTION-LDY",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.ExtractConfigCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.ExtractConfigCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -139,7 +126,7 @@ public class CacheHelper {
|
|
String groupCode, String paperId) {
|
|
String groupCode, String paperId) {
|
|
return ObjectRedisCacheProcessor.get("Q_PAPER:EXTRACT_CONFIG_PAPER_",
|
|
return ObjectRedisCacheProcessor.get("Q_PAPER:EXTRACT_CONFIG_PAPER_",
|
|
new Object[]{examId, courseCode, groupCode, paperId},
|
|
new Object[]{examId, courseCode, groupCode, paperId},
|
|
- ExtractConfigPaperCacheBean.class, "EC-CORE-QUESTION",
|
|
|
|
|
|
+ ExtractConfigPaperCacheBean.class, "EC-CORE-QUESTION-LDY",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.ExtractConfigPaperCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.ExtractConfigPaperCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -151,7 +138,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static BasePaperCacheBean getBasePaper(String paperId) {
|
|
public static BasePaperCacheBean getBasePaper(String paperId) {
|
|
return ObjectRedisCacheProcessor.get("Q_PAPER:BASE_", new Object[]{paperId},
|
|
return ObjectRedisCacheProcessor.get("Q_PAPER:BASE_", new Object[]{paperId},
|
|
- BasePaperCacheBean.class, "EC-CORE-QUESTION",
|
|
|
|
|
|
+ BasePaperCacheBean.class, "EC-CORE-QUESTION-LDY",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.BasePaperCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.BasePaperCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -168,7 +155,7 @@ public class CacheHelper {
|
|
String questionId) {
|
|
String questionId) {
|
|
return ObjectRedisCacheProcessor.get("Q_QUESTION:",
|
|
return ObjectRedisCacheProcessor.get("Q_QUESTION:",
|
|
new Object[]{examId, courseCode, groupCode, questionId}, QuestionCacheBean.class,
|
|
new Object[]{examId, courseCode, groupCode, questionId}, QuestionCacheBean.class,
|
|
- "EC-CORE-QUESTION",
|
|
|
|
|
|
+ "EC-CORE-QUESTION-LDY",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -180,7 +167,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static QuestionAnswerCacheBean getQuestionAnswer(String questionId) {
|
|
public static QuestionAnswerCacheBean getQuestionAnswer(String questionId) {
|
|
return ObjectRedisCacheProcessor.get("Q_QUESTION:ANSWER_", new Object[]{questionId},
|
|
return ObjectRedisCacheProcessor.get("Q_QUESTION:ANSWER_", new Object[]{questionId},
|
|
- QuestionAnswerCacheBean.class, "EC-CORE-QUESTION",
|
|
|
|
|
|
+ QuestionAnswerCacheBean.class, "EC-CORE-QUESTION-LDY",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.QuestionAnswerCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.QuestionAnswerCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -193,7 +180,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static CourseCacheBean getCourse(Long courseId) {
|
|
public static CourseCacheBean getCourse(Long courseId) {
|
|
return ObjectRedisCacheProcessor.get("B_COURSE:", new Object[]{courseId},
|
|
return ObjectRedisCacheProcessor.get("B_COURSE:", new Object[]{courseId},
|
|
- CourseCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ CourseCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.CourseCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.CourseCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -207,7 +194,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static StudentCacheBean getStudent(Long studentId) {
|
|
public static StudentCacheBean getStudent(Long studentId) {
|
|
return ObjectRedisCacheProcessor.get("B_STUDENT:", new Object[]{studentId},
|
|
return ObjectRedisCacheProcessor.get("B_STUDENT:", new Object[]{studentId},
|
|
- StudentCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ StudentCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.StudentCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.StudentCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -222,7 +209,7 @@ public class CacheHelper {
|
|
public static ExamStudentSettingsCacheBean getExamStudentSettings(Long examId, Long studentId) {
|
|
public static ExamStudentSettingsCacheBean getExamStudentSettings(Long examId, Long studentId) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_SETTINGS:",
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_SETTINGS:",
|
|
new Object[]{examId, studentId}, ExamStudentSettingsCacheBean.class,
|
|
new Object[]{examId, studentId}, ExamStudentSettingsCacheBean.class,
|
|
- "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ "EC-CORE-EXAMWORK-LDY",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentSettingsCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentSettingsCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -239,7 +226,7 @@ public class CacheHelper {
|
|
String key) {
|
|
String key) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_PROP:",
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_PROP:",
|
|
new Object[]{examId, studentId, key}, ExamStudentPropertyCacheBean.class,
|
|
new Object[]{examId, studentId, key}, ExamStudentPropertyCacheBean.class,
|
|
- "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ "EC-CORE-EXAMWORK-LDY",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentPropertyCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentPropertyCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -253,7 +240,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ExamOrgSettingsCacheBean getExamOrgSettings(Long examId, Long orgId) {
|
|
public static ExamOrgSettingsCacheBean getExamOrgSettings(Long examId, Long orgId) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_ORG_SETTINGS:", new Object[]{examId, orgId},
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_ORG_SETTINGS:", new Object[]{examId, orgId},
|
|
- ExamOrgSettingsCacheBean.class, "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ ExamOrgSettingsCacheBean.class, "EC-CORE-EXAMWORK-LDY",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgSettingsCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgSettingsCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -268,7 +255,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ExamOrgPropertyCacheBean getExamOrgProperty(Long examId, Long orgId, String key) {
|
|
public static ExamOrgPropertyCacheBean getExamOrgProperty(Long examId, Long orgId, String key) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_ORG_PROP:", new Object[]{examId, orgId, key},
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_ORG_PROP:", new Object[]{examId, orgId, key},
|
|
- ExamOrgPropertyCacheBean.class, "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ ExamOrgPropertyCacheBean.class, "EC-CORE-EXAMWORK-LDY",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgPropertyCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgPropertyCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -282,7 +269,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ExamPropertyCacheBean getExamProperty(Long examId, String key) {
|
|
public static ExamPropertyCacheBean getExamProperty(Long examId, String key) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_PROP:", new Object[]{examId, key},
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_PROP:", new Object[]{examId, key},
|
|
- ExamPropertyCacheBean.class, "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ ExamPropertyCacheBean.class, "EC-CORE-EXAMWORK-LDY",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamPropertyCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamPropertyCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -295,7 +282,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ExamSettingsCacheBean getExamSettings(Long examId) {
|
|
public static ExamSettingsCacheBean getExamSettings(Long examId) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM:", new Object[]{examId},
|
|
return ObjectRedisCacheProcessor.get("E_EXAM:", new Object[]{examId},
|
|
- ExamSettingsCacheBean.class, "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ ExamSettingsCacheBean.class, "EC-CORE-EXAMWORK-LDY",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamSettingsCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamSettingsCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -308,7 +295,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static OrgCacheBean getOrg(Long orgId) {
|
|
public static OrgCacheBean getOrg(Long orgId) {
|
|
return ObjectRedisCacheProcessor.get("B_ORG:", new Object[]{orgId}, OrgCacheBean.class,
|
|
return ObjectRedisCacheProcessor.get("B_ORG:", new Object[]{orgId}, OrgCacheBean.class,
|
|
- "EC-CORE-BASIC", "cn.com.qmth.examcloud.core.basic.service.cache.OrgCache");
|
|
|
|
|
|
+ "EC-CORE-BASIC-LDY", "cn.com.qmth.examcloud.core.basic.service.cache.OrgCache");
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -320,7 +307,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static RootOrgCacheBean getRootOrg(String domain) {
|
|
public static RootOrgCacheBean getRootOrg(String domain) {
|
|
return ObjectRedisCacheProcessor.get("B_ROOT_ORG:", new Object[]{domain},
|
|
return ObjectRedisCacheProcessor.get("B_ROOT_ORG:", new Object[]{domain},
|
|
- RootOrgCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ RootOrgCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.RootOrgCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.RootOrgCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -334,7 +321,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static OrgPropertyCacheBean getOrgProperty(Long orgId, String key) {
|
|
public static OrgPropertyCacheBean getOrgProperty(Long orgId, String key) {
|
|
return ObjectRedisCacheProcessor.get("B_ORG_PROP:", new Object[]{orgId, key},
|
|
return ObjectRedisCacheProcessor.get("B_ORG_PROP:", new Object[]{orgId, key},
|
|
- OrgPropertyCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ OrgPropertyCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.OrgPropertyCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.OrgPropertyCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -348,7 +335,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ThirdPartyAccessCacheBean getThirdPartyAccess(Long rootOrgId, String appId) {
|
|
public static ThirdPartyAccessCacheBean getThirdPartyAccess(Long rootOrgId, String appId) {
|
|
return ObjectRedisCacheProcessor.get("B_THIRD_PARTY_ACCESS:",
|
|
return ObjectRedisCacheProcessor.get("B_THIRD_PARTY_ACCESS:",
|
|
- new Object[]{rootOrgId, appId}, ThirdPartyAccessCacheBean.class, "EC-CORE-BASIC",
|
|
|
|
|
|
+ new Object[]{rootOrgId, appId}, ThirdPartyAccessCacheBean.class, "EC-CORE-BASIC-LDY",
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.ThirdPartyAccessCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.ThirdPartyAccessCache");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -361,7 +348,7 @@ public class CacheHelper {
|
|
*/
|
|
*/
|
|
public static ExamStudentCacheBean getExamStudent(Long examStudentId) {
|
|
public static ExamStudentCacheBean getExamStudent(Long examStudentId) {
|
|
return ObjectRedisCacheProcessor.get("OE_ES:", new Object[]{examStudentId},
|
|
return ObjectRedisCacheProcessor.get("OE_ES:", new Object[]{examStudentId},
|
|
- ExamStudentCacheBean.class, "EC-CORE-OE-ADMIN",
|
|
|
|
|
|
+ ExamStudentCacheBean.class, "EC-CORE-OE-ADMIN-LDY",
|
|
"cn.com.qmth.examcloud.core.oe.admin.service.cache.ExamStudentCache");
|
|
"cn.com.qmth.examcloud.core.oe.admin.service.cache.ExamStudentCache");
|
|
}
|
|
}
|
|
|
|
|