|
@@ -1,6 +1,7 @@
|
|
|
package cn.com.qmth.examcloud.support.cache;
|
|
|
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.AppCacheBean;
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.ExamRecordPropertyCacheBean;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
|
import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
|
|
|
|
|
@@ -36,5 +37,22 @@ public class CacheHelper {
|
|
|
SysPropertyCacheBean.class, "EC-CORE-BASIC",
|
|
|
"cn.com.qmth.examcloud.core.basic.service.cache.SystemPropertyCache");
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据考试记录id获取考试信息<br>
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param propKey
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ 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");
|
|
|
+ }
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
|
+ ExamRecordPropertyCacheBean b = getExamRecordProperty(80505L);
|
|
|
+ System.out.println(b.getExamId());
|
|
|
+ }
|
|
|
}
|