Kaynağa Gözat

给阅卷导出作答信息新加标答和题干字段

lideyin 5 yıl önce
ebeveyn
işleme
d05bf32c1d

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

@@ -55,23 +55,10 @@ public class CacheHelper {
 	 */
 	public static SysPropertyCacheBean getSysProperty(String 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");
 	}
 
-	/**
-	 * 根据考试记录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) {
 		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");
 	}
 
@@ -96,7 +83,7 @@ public class CacheHelper {
 	public static PrivilegeRolesCacheBean getPrivilegeRoles(Long rootOrgId, String privilegeCode) {
 		return ObjectRedisCacheProcessor.get("$_PRIV_ROLES:",
 				new Object[]{rootOrgId, privilegeCode}, PrivilegeRolesCacheBean.class,
-				"EC-CORE-BASIC",
+				"EC-CORE-BASIC-LDY",
 				"cn.com.qmth.examcloud.core.basic.service.cache.PrrivilegeRolesCache");
 	}
 
@@ -109,7 +96,7 @@ public class CacheHelper {
 	 */
 	public static RootOrgPrivilegesCacheBean getRootOrgPrivileges(Long 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");
 	}
 
@@ -122,7 +109,7 @@ public class CacheHelper {
 	 */
 	public static ExtractConfigCacheBean getExtractConfig(Long examId, String 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");
 	}
 
@@ -139,7 +126,7 @@ public class CacheHelper {
 			String groupCode, String paperId) {
 		return ObjectRedisCacheProcessor.get("Q_PAPER:EXTRACT_CONFIG_PAPER_",
 				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");
 	}
 
@@ -151,7 +138,7 @@ public class CacheHelper {
 	 */
 	public static BasePaperCacheBean getBasePaper(String 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");
 	}
 
@@ -168,7 +155,7 @@ public class CacheHelper {
 			String questionId) {
 		return ObjectRedisCacheProcessor.get("Q_QUESTION:",
 				new Object[]{examId, courseCode, groupCode, questionId}, QuestionCacheBean.class,
-				"EC-CORE-QUESTION",
+				"EC-CORE-QUESTION-LDY",
 				"cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache");
 	}
 
@@ -180,7 +167,7 @@ public class CacheHelper {
 	 */
 	public static QuestionAnswerCacheBean getQuestionAnswer(String 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");
 	}
 
@@ -193,7 +180,7 @@ public class CacheHelper {
 	 */
 	public static CourseCacheBean getCourse(Long 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");
 	}
 
@@ -207,7 +194,7 @@ public class CacheHelper {
 	 */
 	public static StudentCacheBean getStudent(Long 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");
 	}
 
@@ -222,7 +209,7 @@ public class CacheHelper {
 	public static ExamStudentSettingsCacheBean getExamStudentSettings(Long examId, Long studentId) {
 		return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_SETTINGS:",
 				new Object[]{examId, studentId}, ExamStudentSettingsCacheBean.class,
-				"EC-CORE-EXAMWORK",
+				"EC-CORE-EXAMWORK-LDY",
 				"cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentSettingsCache");
 	}
 
@@ -239,7 +226,7 @@ public class CacheHelper {
 			String key) {
 		return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_PROP:",
 				new Object[]{examId, studentId, key}, ExamStudentPropertyCacheBean.class,
-				"EC-CORE-EXAMWORK",
+				"EC-CORE-EXAMWORK-LDY",
 				"cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentPropertyCache");
 	}
 
@@ -253,7 +240,7 @@ public class CacheHelper {
 	 */
 	public static ExamOrgSettingsCacheBean getExamOrgSettings(Long examId, Long 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");
 	}
 
@@ -268,7 +255,7 @@ public class CacheHelper {
 	 */
 	public static ExamOrgPropertyCacheBean getExamOrgProperty(Long examId, Long orgId, String 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");
 	}
 
@@ -282,7 +269,7 @@ public class CacheHelper {
 	 */
 	public static ExamPropertyCacheBean getExamProperty(Long examId, String 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");
 	}
 
@@ -295,7 +282,7 @@ public class CacheHelper {
 	 */
 	public static ExamSettingsCacheBean getExamSettings(Long 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");
 	}
 
@@ -308,7 +295,7 @@ public class CacheHelper {
 	 */
 	public static OrgCacheBean getOrg(Long orgId) {
 		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) {
 		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");
 	}
 
@@ -334,7 +321,7 @@ public class CacheHelper {
 	 */
 	public static OrgPropertyCacheBean getOrgProperty(Long orgId, String 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");
 	}
 
@@ -348,7 +335,7 @@ public class CacheHelper {
 	 */
 	public static ThirdPartyAccessCacheBean getThirdPartyAccess(Long rootOrgId, String appId) {
 		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");
 	}
 
@@ -361,7 +348,7 @@ public class CacheHelper {
 	 */
 	public static ExamStudentCacheBean getExamStudent(Long 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");
 	}