|
@@ -1,27 +1,17 @@
|
|
|
package cn.com.qmth.examcloud.core.oe.student.dao.entity;
|
|
|
|
|
|
-import java.util.Date;
|
|
|
-
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.Entity;
|
|
|
-import javax.persistence.EnumType;
|
|
|
-import javax.persistence.Enumerated;
|
|
|
-import javax.persistence.GeneratedValue;
|
|
|
-import javax.persistence.GenerationType;
|
|
|
-import javax.persistence.Id;
|
|
|
-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;
|
|
|
-import cn.com.qmth.examcloud.support.enums.HandInExamType;
|
|
|
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 cn.com.qmth.examcloud.support.enums.SyncStatus;
|
|
|
import cn.com.qmth.examcloud.web.jpa.JpaEntity;
|
|
|
+import org.hibernate.annotations.DynamicInsert;
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
|
+import javax.persistence.*;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
/**
|
|
|
* @author chenken
|
|
|
* @date 2018年8月13日 上午11:41:34
|
|
@@ -41,34 +31,41 @@ import org.hibernate.annotations.DynamicUpdate;
|
|
|
@DynamicInsert
|
|
|
@DynamicUpdate
|
|
|
public class ExamRecordDataEntity extends JpaEntity {
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
private static final long serialVersionUID = -242327915801750970L;
|
|
|
+
|
|
|
/**
|
|
|
* 主键
|
|
|
*/
|
|
|
@Id
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
private Long id;
|
|
|
+
|
|
|
/**
|
|
|
* 考试ID
|
|
|
*/
|
|
|
private Long examId;
|
|
|
+
|
|
|
/**
|
|
|
* 考试类型
|
|
|
*/
|
|
|
@Column(length = 20)
|
|
|
@Enumerated(EnumType.STRING)
|
|
|
private ExamType examType;
|
|
|
+
|
|
|
/**
|
|
|
* 考生ID
|
|
|
*/
|
|
|
private Long examStudentId;
|
|
|
+
|
|
|
/**
|
|
|
* 学生ID
|
|
|
*/
|
|
|
private Long studentId;
|
|
|
+
|
|
|
/**
|
|
|
* 课程ID
|
|
|
*/
|
|
@@ -78,10 +75,12 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
* 学习中心ID
|
|
|
*/
|
|
|
private Long orgId;
|
|
|
+
|
|
|
/**
|
|
|
* 顶级机构ID
|
|
|
*/
|
|
|
private Long rootOrgId;
|
|
|
+
|
|
|
/**
|
|
|
* 基础试卷ID
|
|
|
*/
|
|
@@ -96,6 +95,7 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
* 考试开始时间
|
|
|
*/
|
|
|
private Date startTime;
|
|
|
+
|
|
|
/**
|
|
|
* 考试结束时间
|
|
|
*/
|
|
@@ -110,30 +110,37 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
* 考试时长
|
|
|
*/
|
|
|
private Long usedExamTime;
|
|
|
+
|
|
|
/**
|
|
|
* 是否断点续考
|
|
|
*/
|
|
|
private Boolean isContinued;
|
|
|
+
|
|
|
/**
|
|
|
* 断点续考次数
|
|
|
*/
|
|
|
private Integer continuedCount;
|
|
|
+
|
|
|
/**
|
|
|
* 是否达到最大断点限制
|
|
|
*/
|
|
|
private Boolean isExceed;
|
|
|
+
|
|
|
/**
|
|
|
* 抓拍比对成功次数
|
|
|
*/
|
|
|
private Integer faceSuccessCount;
|
|
|
+
|
|
|
/**
|
|
|
* 抓拍比对失败次数
|
|
|
*/
|
|
|
private Integer faceFailedCount;
|
|
|
+
|
|
|
/**
|
|
|
* 抓拍存在陌生人的次数
|
|
|
*/
|
|
|
private Integer faceStrangerCount;
|
|
|
+
|
|
|
/**
|
|
|
* 抓拍比对总次数
|
|
|
*/
|
|
@@ -154,7 +161,6 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
private HandInExamType handInExamType;
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
* 活体检测结果
|
|
|
*/
|
|
|
@Column(length = 20)
|
|
@@ -165,10 +171,12 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
* 是否异常数据
|
|
|
*/
|
|
|
private Boolean isWarn;
|
|
|
+
|
|
|
/**
|
|
|
* 是否被审核过
|
|
|
*/
|
|
|
private Boolean isAudit;
|
|
|
+
|
|
|
/**
|
|
|
* 是否违纪
|
|
|
*/
|
|
@@ -258,6 +266,18 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
*/
|
|
|
private Date enterExamTime;
|
|
|
|
|
|
+ /**
|
|
|
+ * 是否采用千人千卷规则(默认:false 为正常调卷规则)
|
|
|
+ */
|
|
|
+ @Column(columnDefinition = "bit(1) not null default 0")
|
|
|
+ private Boolean randomPaper;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 试卷总分
|
|
|
+ */
|
|
|
+ @Column(columnDefinition = "double not null default 0")
|
|
|
+ private Double paperScore;
|
|
|
+
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
@@ -608,4 +628,21 @@ public class ExamRecordDataEntity extends JpaEntity {
|
|
|
public void setEnterExamTime(Date enterExamTime) {
|
|
|
this.enterExamTime = enterExamTime;
|
|
|
}
|
|
|
+
|
|
|
+ public Boolean getRandomPaper() {
|
|
|
+ return randomPaper;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRandomPaper(Boolean randomPaper) {
|
|
|
+ this.randomPaper = randomPaper;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getPaperScore() {
|
|
|
+ return paperScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPaperScore(Double paperScore) {
|
|
|
+ this.paperScore = paperScore;
|
|
|
+ }
|
|
|
+
|
|
|
}
|