wangwei 5 жил өмнө
parent
commit
ecc087467b

+ 42 - 0
src/main/java/cn/com/qmth/examcloud/support/examing/ExamBoss.java

@@ -0,0 +1,42 @@
+package cn.com.qmth.examcloud.support.examing;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+/**
+ * 考试控制属性
+ *
+ * @author WANGWEI
+ * @date 2019年12月16日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public class ExamBoss implements JsonSerializable {
+
+	private static final long serialVersionUID = -3499412275759440367L;
+
+	/**
+	 * 开考次数
+	 */
+	private int startCount;
+
+	/**
+	 * 完结次数
+	 */
+	private int endCount;
+
+	public int getStartCount() {
+		return startCount;
+	}
+
+	public void setStartCount(int startCount) {
+		this.startCount = startCount;
+	}
+
+	public int getEndCount() {
+		return endCount;
+	}
+
+	public void setEndCount(int endCount) {
+		this.endCount = endCount;
+	}
+
+}

+ 8 - 5
src/main/java/cn/com/qmth/examcloud/support/redis/RedisKeyBuilder.java

@@ -9,14 +9,14 @@ package cn.com.qmth.examcloud.support.redis;
  */
 public interface RedisKeyBuilder {
 
-    @RedisKeyDefine(value = "网考考试会话", Prefix = "OE_SESSION")
-    String examingSessionKey(Long studentId);
-    
+	@RedisKeyDefine(value = "网考考试会话", Prefix = "OE_SESSION")
+	String examingSessionKey(Long studentId);
+
 	@RedisKeyDefine(value = "网考考试记录", Prefix = "OE_ERD")
 	String examRecordDataKey(Long examRecordDataId);
-	
+
 	@RedisKeyDefine(value = "网考试卷结构", Prefix = "OE_PAPER")
-    String studentPaperKey(Long examRecordDataId);
+	String studentPaperKey(Long examRecordDataId);
 
 	@RedisKeyDefine(value = "网考作答", Prefix = "OE_ANSWER")
 	String studentAnswerKey(Long examRecordDataId, Integer order);
@@ -24,4 +24,7 @@ public interface RedisKeyBuilder {
 	@RedisKeyDefine(value = "文件作答", Prefix = "OE_File_ANSWER")
 	String studentFileAnswerKey(Long examRecordDataId, Integer order);
 
+	@RedisKeyDefine(value = "考试控制属性", Prefix = "OE_BOSS")
+	String examBossKey(Long examId);
+
 }