|
@@ -8,6 +8,8 @@ import cn.com.qmth.examcloud.support.cache.bean.ExamOrgSettingsCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExamPropertyCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExamPropertyCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExamRecordPropertyCacheBean;
|
|
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.ExamSettingsCacheBean;
|
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.ExamStudentPropertyCacheBean;
|
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.ExamStudentSettingsCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExtractConfigCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExtractConfigCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExtractConfigPaperCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ExtractConfigPaperCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.OrgCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.OrgCacheBean;
|
|
@@ -208,6 +210,38 @@ public class CacheHelper {
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.StudentCache");
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.StudentCache");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询考试学生配置
|
|
|
|
+ *
|
|
|
|
+ * @param examId
|
|
|
|
+ * @param studentId
|
|
|
|
+ * @return
|
|
|
|
+ * @author WANGWEI
|
|
|
|
+ */
|
|
|
|
+ public static ExamStudentSettingsCacheBean getExamStudentSettings(Long examId, Long studentId) {
|
|
|
|
+ return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_SETTINGS:",
|
|
|
|
+ new Object[]{examId, studentId}, ExamStudentSettingsCacheBean.class,
|
|
|
|
+ "EC-CORE-EXAMWORK",
|
|
|
|
+ "cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentSettingsCache");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询考试学生属性
|
|
|
|
+ *
|
|
|
|
+ * @author WANGWEI
|
|
|
|
+ * @param examId
|
|
|
|
+ * @param studentId
|
|
|
|
+ * @param key
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public static ExamStudentPropertyCacheBean getExamStudentProperty(Long examId, Long studentId,
|
|
|
|
+ String key) {
|
|
|
|
+ return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_PROP:",
|
|
|
|
+ new Object[]{examId, studentId, key}, ExamStudentPropertyCacheBean.class,
|
|
|
|
+ "EC-CORE-EXAMWORK",
|
|
|
|
+ "cn.com.qmth.examcloud.core.examwork.service.cache.ExamStudentPropertyCache");
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询考试机构配置
|
|
* 查询考试机构配置
|
|
*
|
|
*
|
|
@@ -233,7 +267,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},
|
|
- ExamOrgSettingsCacheBean.class, "EC-CORE-EXAMWORK",
|
|
|
|
|
|
+ ExamOrgPropertyCacheBean.class, "EC-CORE-EXAMWORK",
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgPropertyCache");
|
|
"cn.com.qmth.examcloud.core.examwork.service.cache.ExamOrgPropertyCache");
|
|
}
|
|
}
|
|
|
|
|