xiatian 2 éve
szülő
commit
b228140ef4

+ 8 - 3
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/CacheConstants.java

@@ -8,9 +8,14 @@ package cn.com.qmth.examcloud.support;
 public interface CacheConstants {
 
     /**
-     * 示例
+     * 调卷规则
      */
-    String CACHE_OE_XXX = "$OE:XXX";
-
+    String CACHE_Q_EXTRACT_CONFIG = "$Q:EXTRACT_CONFIG:";
+    
+    /**
+     * 考试设置
+     */
+    String CACHE_E_EXAM = "$E:EXAM:";
 
+    
 }

+ 92 - 79
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/cache/bean/ExtractConfigCacheBean.java

@@ -10,84 +10,97 @@ import java.util.List;
  * @Date 2019/7/30 14:36
  */
 public class ExtractConfigCacheBean extends RandomCacheBean {
-    private static final long serialVersionUID = 6309635978462557320L;
-
-    /**
-     * ID
-     */
-    protected String id;
-
-    /**
-     * 考试ID
-     */
-    private Long examId;
-
-    /**
-     * 课程代码
-     */
-    private String courseCode;
-
-    /**
-     * 抽取试卷对象集合
-     */
-    private List<ExtractConfigDetailCacheBean> details;
-
-    /**
-     * 是否小题乱序
-     */
-    Boolean sortQuestionOrder;
-
-    /**
-     * 是否选项乱序
-     */
-    Boolean sortOptionOrder;
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(String id) {
-        this.id = id;
-    }
-
-    public Long getExamId() {
-        return examId;
-    }
-
-    public void setExamId(Long examId) {
-        this.examId = examId;
-    }
-
-    public String getCourseCode() {
-        return courseCode;
-    }
-
-    public void setCourseCode(String courseCode) {
-        this.courseCode = courseCode;
-    }
-
-    public List<ExtractConfigDetailCacheBean> getDetails() {
-        return details;
-    }
-
-    public void setDetails(List<ExtractConfigDetailCacheBean> details) {
-        this.details = details;
-    }
-
-    public Boolean getSortQuestionOrder() {
-        return sortQuestionOrder;
-    }
-
-    public void setSortQuestionOrder(Boolean sortQuestionOrder) {
-        this.sortQuestionOrder = sortQuestionOrder;
-    }
-
-    public Boolean getSortOptionOrder() {
-        return sortOptionOrder;
-    }
-
-    public void setSortOptionOrder(Boolean sortOptionOrder) {
-        this.sortOptionOrder = sortOptionOrder;
-    }
+	private static final long serialVersionUID = 6309635978462557320L;
+
+	/**
+	 * ID
+	 */
+	protected String id;
+
+	/**
+	 * 考试ID
+	 */
+	private Long examId;
+
+	/**
+	 * 课程代码
+	 */
+	private String courseCode;
+
+	/**
+	 * 抽取试卷对象集合
+	 */
+	private List<ExtractConfigDetailCacheBean> details;
+
+	/**
+	 * 是否小题乱序
+	 */
+	Boolean sortQuestionOrder;
+
+	/**
+	 * 是否选项乱序
+	 */
+	Boolean sortOptionOrder;
+
+	/**
+	 * 抽卷模板id
+	 */
+	private String randomPaperId;
+
+	public String getId() {
+		return id;
+	}
+
+	public void setId(String id) {
+		this.id = id;
+	}
+
+	public Long getExamId() {
+		return examId;
+	}
+
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+
+	public String getCourseCode() {
+		return courseCode;
+	}
+
+	public void setCourseCode(String courseCode) {
+		this.courseCode = courseCode;
+	}
+
+	public List<ExtractConfigDetailCacheBean> getDetails() {
+		return details;
+	}
+
+	public void setDetails(List<ExtractConfigDetailCacheBean> details) {
+		this.details = details;
+	}
+
+	public Boolean getSortQuestionOrder() {
+		return sortQuestionOrder;
+	}
+
+	public void setSortQuestionOrder(Boolean sortQuestionOrder) {
+		this.sortQuestionOrder = sortQuestionOrder;
+	}
+
+	public Boolean getSortOptionOrder() {
+		return sortOptionOrder;
+	}
+
+	public void setSortOptionOrder(Boolean sortOptionOrder) {
+		this.sortOptionOrder = sortOptionOrder;
+	}
+
+	public String getRandomPaperId() {
+		return randomPaperId;
+	}
+
+	public void setRandomPaperId(String randomPaperId) {
+		this.randomPaperId = randomPaperId;
+	}
 
 }