Преглед на файлове

添加交卷类型枚举

lideyin преди 5 години
родител
ревизия
bdff1fc29f

+ 20 - 0
src/main/java/cn/com/qmth/examcloud/support/enums/HandInExamType.java

@@ -0,0 +1,20 @@
+package cn.com.qmth.examcloud.support.enums;
+
+
+/**
+ * @Description 交卷类型
+ * @Author lideyin
+ * @Date 2019/8/1 18:07
+ * @Version 1.0
+ */
+public enum HandInExamType {
+    /**
+     * 手工交卷
+     */
+    MANUAL,
+    /**
+     * 自动交卷
+     */
+    AUTO
+
+}

+ 14 - 0
src/main/java/cn/com/qmth/examcloud/support/examing/ExamRecordData.java

@@ -5,6 +5,7 @@ import java.util.Date;
 import cn.com.qmth.examcloud.api.commons.enums.ExamType;
 import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
 import cn.com.qmth.examcloud.support.enums.ExamRecordStatus;
+import cn.com.qmth.examcloud.support.enums.HandInExamType;
 
 public class ExamRecordData implements JsonSerializable {
 
@@ -116,6 +117,11 @@ public class ExamRecordData implements JsonSerializable {
     // 考试记录状态
     private ExamRecordStatus examRecordStatus;
 
+    /**
+     * 交卷类型
+     */
+    private HandInExamType handInExamType;
+
     public Long getId() {
         return id;
     }
@@ -283,4 +289,12 @@ public class ExamRecordData implements JsonSerializable {
     public void setExamRecordStatus(ExamRecordStatus examRecordStatus) {
         this.examRecordStatus = examRecordStatus;
     }
+
+    public HandInExamType getHandInExamType() {
+        return handInExamType;
+    }
+
+    public void setHandInExamType(HandInExamType handInExamType) {
+        this.handInExamType = handInExamType;
+    }
 }