|
@@ -1,17 +1,6 @@
|
|
|
package cn.com.qmth.examcloud.support.cache;
|
|
|
|
|
|
-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.ExamOrgPropertyCacheBean;
|
|
|
-import cn.com.qmth.examcloud.support.cache.bean.ExamOrgSettingsCacheBean;
|
|
|
-import cn.com.qmth.examcloud.support.cache.bean.ExamRecordPropertyCacheBean;
|
|
|
-import cn.com.qmth.examcloud.support.cache.bean.ExamSettingsCacheBean;
|
|
|
-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;
|
|
|
-import cn.com.qmth.examcloud.support.cache.bean.StudentCacheBean;
|
|
|
-import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.*;
|
|
|
import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
|
|
|
|
|
|
/**
|
|
@@ -101,18 +90,46 @@ public class CacheHelper {
|
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.RootOrgPrrivilegesCache");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取原始试卷(题库实现)
|
|
|
- *
|
|
|
- * @param examId
|
|
|
- * @param courseCode
|
|
|
- * @param paperType
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static BasePaperCacheBean getBasePaper(Long examId, String courseCode,
|
|
|
- String paperType) {
|
|
|
- return null;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 获取调卷规则的试卷结构(题库)
|
|
|
+ *
|
|
|
+ * @param examId
|
|
|
+ * @param courseCode
|
|
|
+ * @param groupCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static PaperCacheBean getPaper(Long examId, String courseCode, String groupCode) {
|
|
|
+ return ObjectRedisCacheProcessor.get("Q_PAPER:", new Object[]{examId, courseCode, groupCode},
|
|
|
+ PaperCacheBean.class, "EC-CORE-QUESTION",
|
|
|
+ "cn.com.qmth.examcloud.core.questions.service.cache.PaperCache");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取试卷结构(题库)
|
|
|
+ *
|
|
|
+ * @param paperId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static BasePaperCacheBean getBasePaper(String paperId) {
|
|
|
+ return ObjectRedisCacheProcessor.get("Q_BASE_PAPER:", new Object[]{paperId},
|
|
|
+ BasePaperCacheBean.class, "EC-CORE-QUESTION",
|
|
|
+ "cn.com.qmth.examcloud.core.questions.service.cache.BasePaperCache");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取试题(题库)
|
|
|
+ *
|
|
|
+ * @param examId
|
|
|
+ * @param courseCode
|
|
|
+ * @param groupCode
|
|
|
+ * @param questionId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static QuestionCacheBean getQuestion(Long examId, String courseCode, String groupCode, String questionId) {
|
|
|
+ return ObjectRedisCacheProcessor.get("Q_QUESTION:", new Object[]{examId, courseCode, groupCode, questionId},
|
|
|
+ QuestionCacheBean.class, "EC-CORE-QUESTION",
|
|
|
+ "cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache");
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 查询课程
|