wangwei 5 年之前
父節點
當前提交
9a51147e74

+ 81 - 0
src/main/java/cn/com/qmth/examcloud/support/examing/ExamActivityTime.java

@@ -0,0 +1,81 @@
+package cn.com.qmth.examcloud.support.examing;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+/**
+ * 考试活动时间
+ *
+ * @author WANGWEI
+ * @date 2019年12月27日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public class ExamActivityTime implements JsonSerializable {
+
+	private static final long serialVersionUID = 380814978042469776L;
+
+	/**
+	 * 顶级机构ID
+	 */
+	private Long rootOrgId;
+
+	/**
+	 * 学生ID
+	 */
+	private Long studentId;
+
+	/**
+	 * 考试ID
+	 */
+	private Long examId;
+
+	/**
+	 * 课程ID
+	 */
+	private Long courseId;
+
+	/**
+	 * 学生最后活动时间
+	 */
+	private Long activeTime;
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public Long getStudentId() {
+		return studentId;
+	}
+
+	public void setStudentId(Long studentId) {
+		this.studentId = studentId;
+	}
+
+	public Long getExamId() {
+		return examId;
+	}
+
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+
+	public Long getCourseId() {
+		return courseId;
+	}
+
+	public void setCourseId(Long courseId) {
+		this.courseId = courseId;
+	}
+
+	public Long getActiveTime() {
+		return activeTime;
+	}
+
+	public void setActiveTime(Long activeTime) {
+		this.activeTime = activeTime;
+	}
+
+}

+ 93 - 0
src/main/java/cn/com/qmth/examcloud/support/examing/ExamHeartbeat.java

@@ -0,0 +1,93 @@
+package cn.com.qmth.examcloud.support.examing;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+/**
+ * 考试心跳
+ *
+ * @author WANGWEI
+ * @date 2019年12月27日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public class ExamHeartbeat implements JsonSerializable {
+	private static final long serialVersionUID = 2981954395650966836L;
+
+	/**
+	 * 顶级机构ID
+	 */
+	private Long rootOrgId;
+
+	/**
+	 * 学生ID
+	 */
+	private Long studentId;
+
+	/**
+	 * 考试ID
+	 */
+	private Long examId;
+
+	/**
+	 * 课程ID
+	 */
+	private Long courseId;
+
+	/**
+	 * 心跳次数
+	 */
+	private Long times;
+
+	/**
+	 * 耗时(单位:秒)
+	 */
+	private Long cost;
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public Long getStudentId() {
+		return studentId;
+	}
+
+	public void setStudentId(Long studentId) {
+		this.studentId = studentId;
+	}
+
+	public Long getExamId() {
+		return examId;
+	}
+
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+
+	public Long getCourseId() {
+		return courseId;
+	}
+
+	public void setCourseId(Long courseId) {
+		this.courseId = courseId;
+	}
+
+	public Long getTimes() {
+		return times;
+	}
+
+	public void setTimes(Long times) {
+		this.times = times;
+	}
+
+	public Long getCost() {
+		return cost;
+	}
+
+	public void setCost(Long cost) {
+		this.cost = cost;
+	}
+
+}

+ 105 - 151
src/main/java/cn/com/qmth/examcloud/support/examing/ExamingSession.java

@@ -26,10 +26,10 @@ public class ExamingSession implements JsonSerializable {
 	private Long rootOrgId;
 
 	/**
-     * 学习中心ID
-     */
-    private Long orgId;
-    
+	 * 学习中心ID
+	 */
+	private Long orgId;
+
 	/**
 	 * 考试状态
 	 */
@@ -49,7 +49,7 @@ public class ExamingSession implements JsonSerializable {
 	 * 课程ID
 	 */
 	private Long courseId;
-	
+
 	/**
 	 * 课程CODE
 	 */
@@ -61,56 +61,45 @@ public class ExamingSession implements JsonSerializable {
 	private Long examStudentId;
 
 	/**
-	 * 耗时(单位:秒)
+	 * 创建时间
 	 */
-	private Long cost;
+	private Date creationTime;
 
 	/**
-	 * 学生最后活动时间
+	 * 试卷类型
 	 */
-	private Long activeTime;
+	private String paperType;
 
 	/**
-	 * 创建时间
+	 * 考试记录DataID
 	 */
-	private Date creationTime;
-	
-    /**
-     * 试卷类型
-     */
-    private String paperType;
-    
-    /**
-     * 考试记录DataID
-     */
-    private Long examRecordDataId;
-    
-    /**
-     * 考试开始时间
-     */
-    private Long startTime;
-    
-    /**
-     * 冻结时间:分钟
-     */
-    private Integer freezeTime;
-    
-    /**
-     * 考试类型
-     */
-    private String examType;
-    
-    /**
-     * 断点续考时间:分钟
-     */
-    private Integer examReconnectTime;
-    
-    /**
-     * 考试时长:毫秒
-     */
-    private Long examDuration;
-    
-    
+	private Long examRecordDataId;
+
+	/**
+	 * 考试开始时间
+	 */
+	private Long startTime;
+
+	/**
+	 * 冻结时间:分钟
+	 */
+	private Integer freezeTime;
+
+	/**
+	 * 考试类型
+	 */
+	private String examType;
+
+	/**
+	 * 断点续考时间:分钟
+	 */
+	private Integer examReconnectTime;
+
+	/**
+	 * 考试时长:毫秒
+	 */
+	private Long examDuration;
+
 	/**
 	 * 构建key
 	 *
@@ -179,119 +168,84 @@ public class ExamingSession implements JsonSerializable {
 		this.examStudentId = examStudentId;
 	}
 
-	public Long getCost() {
-		return cost;
+	public Date getCreationTime() {
+		return creationTime;
 	}
 
-	public void setCost(Long cost) {
-		this.cost = cost;
+	public void setCreationTime(Date creationTime) {
+		this.creationTime = creationTime;
 	}
 
-	public Long getActiveTime() {
-		return activeTime;
+	public String getPaperType() {
+		return paperType;
 	}
 
-	public void setActiveTime(Long activeTime) {
-		this.activeTime = activeTime;
+	public void setPaperType(String paperType) {
+		this.paperType = paperType;
 	}
 
-	public Date getCreationTime() {
-		return creationTime;
+	public Long getOrgId() {
+		return orgId;
 	}
 
-	public void setCreationTime(Date creationTime) {
-		this.creationTime = creationTime;
+	public void setOrgId(Long orgId) {
+		this.orgId = orgId;
+	}
+
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+
+	public Long getStartTime() {
+		return startTime;
+	}
+
+	public void setStartTime(Long startTime) {
+		this.startTime = startTime;
+	}
+
+	public Integer getFreezeTime() {
+		return freezeTime;
+	}
+
+	public void setFreezeTime(Integer freezeTime) {
+		this.freezeTime = freezeTime;
+	}
+
+	public String getExamType() {
+		return examType;
+	}
+
+	public void setExamType(String examType) {
+		this.examType = examType;
+	}
+
+	public Integer getExamReconnectTime() {
+		return examReconnectTime;
+	}
+
+	public void setExamReconnectTime(Integer examReconnectTime) {
+		this.examReconnectTime = examReconnectTime;
+	}
+
+	public Long getExamDuration() {
+		return examDuration;
+	}
+
+	public void setExamDuration(Long examDuration) {
+		this.examDuration = examDuration;
+	}
+
+	public String getCourseCode() {
+		return courseCode;
+	}
+
+	public void setCourseCode(String courseCode) {
+		this.courseCode = courseCode;
 	}
 
-    
-    public String getPaperType() {
-        return paperType;
-    }
-
-    
-    public void setPaperType(String paperType) {
-        this.paperType = paperType;
-    }
-
-    
-    public Long getOrgId() {
-        return orgId;
-    }
-
-    
-    public void setOrgId(Long orgId) {
-        this.orgId = orgId;
-    }
-
-    
-    public Long getExamRecordDataId() {
-        return examRecordDataId;
-    }
-
-    
-    public void setExamRecordDataId(Long examRecordDataId) {
-        this.examRecordDataId = examRecordDataId;
-    }
-
-    
-    public Long getStartTime() {
-        return startTime;
-    }
-
-    
-    public void setStartTime(Long startTime) {
-        this.startTime = startTime;
-    }
-
-    
-    public Integer getFreezeTime() {
-        return freezeTime;
-    }
-
-    
-    public void setFreezeTime(Integer freezeTime) {
-        this.freezeTime = freezeTime;
-    }
-
-    
-    public String getExamType() {
-        return examType;
-    }
-
-    
-    public void setExamType(String examType) {
-        this.examType = examType;
-    }
-
-    
-    public Integer getExamReconnectTime() {
-        return examReconnectTime;
-    }
-
-    
-    public void setExamReconnectTime(Integer examReconnectTime) {
-        this.examReconnectTime = examReconnectTime;
-    }
-
-    
-    public Long getExamDuration() {
-        return examDuration;
-    }
-
-    
-    public void setExamDuration(Long examDuration) {
-        this.examDuration = examDuration;
-    }
-
-    
-    public String getCourseCode() {
-        return courseCode;
-    }
-
-    
-    public void setCourseCode(String courseCode) {
-        this.courseCode = courseCode;
-    }
-
-    
 }