浏览代码

冻结时间计算方式

xiatian 1 年之前
父节点
当前提交
27cdfe1bf9

+ 1 - 0
examcloud-common-models/src/main/java/cn/com/qmth/examcloud/support/enums/ExamProperties.java

@@ -11,6 +11,7 @@ public enum ExamProperties {
     SCORE_PUBLISHING("发布成绩"),
     IS_ENTRANCE_EXAM("是否入学考试"),
     FREEZE_TIME("交卷冻结时间"),
+    FREEZE_TIME_TYPE("交卷冻结时间类型"),
     EXAM_RECONNECT_TIME("断点续考时间"),
     BEFORE_EXAM_REMARK("考前说明"),
     AFTER_EXAM_REMARK("考后说明"),

+ 21 - 0
examcloud-common-models/src/main/java/cn/com/qmth/examcloud/support/enums/FreezeTimeType.java

@@ -0,0 +1,21 @@
+package cn.com.qmth.examcloud.support.enums;
+
+
+public enum FreezeTimeType {
+	DURATION("按实际考试时长"),
+	BEGINTIME("按考试开始时间"),
+    ;
+
+    private String desc;
+
+	private FreezeTimeType(String desc) {
+		this.desc = desc;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+    
+    
+
+}

+ 24 - 2
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/examing/ExamingSession.java

@@ -1,9 +1,10 @@
 package cn.com.qmth.examcloud.support.examing;
 
-import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
-
 import java.util.Date;
 
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+import cn.com.qmth.examcloud.support.enums.FreezeTimeType;
+
 /**
  * 考试会话
  *
@@ -129,6 +130,11 @@ public class ExamingSession implements JsonSerializable {
      * 限制切屏次数
      */
     private Integer maxSwitchScreenCount;
+    
+    private FreezeTimeType freezeTimeType;
+    
+    //设置的考试开始时间
+    private Date examStartTime;
 
     public String getKey() {
         return key;
@@ -314,5 +320,21 @@ public class ExamingSession implements JsonSerializable {
         this.recordSwitchScreen = recordSwitchScreen;
     }
 
+	public FreezeTimeType getFreezeTimeType() {
+		return freezeTimeType;
+	}
+
+	public void setFreezeTimeType(FreezeTimeType freezeTimeType) {
+		this.freezeTimeType = freezeTimeType;
+	}
+
+	public Date getExamStartTime() {
+		return examStartTime;
+	}
+
+	public void setExamStartTime(Date examStartTime) {
+		this.examStartTime = examStartTime;
+	}
+
 
 }