Procházet zdrojové kódy

添加交卷类型枚举,交卷代码优化

lideyin před 5 roky
rodič
revize
e64ef145d8

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

@@ -6,6 +6,11 @@ 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;
+import cn.com.qmth.examcloud.support.enums.IsSuccess;
+
+import javax.persistence.Column;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
 
 public class ExamRecordData implements JsonSerializable {
 
@@ -122,6 +127,14 @@ public class ExamRecordData implements JsonSerializable {
      */
     private HandInExamType handInExamType;
 
+    /**
+     *
+     * 活体检测结果
+     */
+    @Column(length = 20)
+    @Enumerated(EnumType.STRING)
+    private IsSuccess faceVerifyResult;
+
     public Long getId() {
         return id;
     }
@@ -297,4 +310,12 @@ public class ExamRecordData implements JsonSerializable {
     public void setHandInExamType(HandInExamType handInExamType) {
         this.handInExamType = handInExamType;
     }
+
+    public IsSuccess getFaceVerifyResult() {
+        return faceVerifyResult;
+    }
+
+    public void setFaceVerifyResult(IsSuccess faceVerifyResult) {
+        this.faceVerifyResult = faceVerifyResult;
+    }
 }