소스 검색

考试记录表添加数据同步状态字段

lideyin 5 년 전
부모
커밋
91b67996b3

+ 13 - 0
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/entity/ExamRecordDataEntity.java

@@ -13,6 +13,7 @@ import javax.persistence.Index;
 import javax.persistence.Table;
 
 import cn.com.qmth.examcloud.support.enums.IsSuccess;
+import cn.com.qmth.examcloud.support.enums.SyncStatus;
 import org.hibernate.annotations.DynamicInsert;
 
 import cn.com.qmth.examcloud.api.commons.enums.ExamType;
@@ -136,11 +137,15 @@ public class ExamRecordDataEntity extends JpaEntity {
     /**
      * 考试记录状态
      */
+    @Column(length = 20)
+    @Enumerated(EnumType.STRING)
     private ExamRecordStatus examRecordStatus;
 
     /**
      * 交卷类型
      */
+    @Column(length = 20)
+    @Enumerated(EnumType.STRING)
     private HandInExamType handInExamType;
 
     /**
@@ -191,6 +196,13 @@ public class ExamRecordDataEntity extends JpaEntity {
      */
     private Double succPercent;
 
+    /**
+     * 数据同步状态
+     */
+    @Column(length = 20)
+    @Enumerated(EnumType.STRING)
+    private SyncStatus syncStatus;
+
     public Long getId() {
         return id;
     }
@@ -446,4 +458,5 @@ public class ExamRecordDataEntity extends JpaEntity {
     public void setIsIllegality(Boolean illegality) {
         isIllegality = illegality;
     }
+
 }