wangwei 5 years ago
parent
commit
c708d68314

+ 6 - 45
src/main/java/cn/com/qmth/examcloud/support/examing/ExamActivityTime.java

@@ -14,60 +14,21 @@ public class ExamActivityTime implements JsonSerializable {
 	private static final long serialVersionUID = 380814978042469776L;
 
 	/**
-	 * 顶级机构ID
+	 * 考试记录ID
 	 */
-	private Long rootOrgId;
-
-	/**
-	 * 学生ID
-	 */
-	private Long studentId;
-
-	/**
-	 * 考试ID
-	 */
-	private Long examId;
-
-	/**
-	 * 课程ID
-	 */
-	private Long courseId;
+	private Long examRecordDataId;
 
 	/**
 	 * 学生最后活动时间
 	 */
 	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 Long getExamRecordDataId() {
+		return examRecordDataId;
 	}
 
-	public void setCourseId(Long courseId) {
-		this.courseId = courseId;
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
 	}
 
 	public Long getActiveTime() {

+ 6 - 45
src/main/java/cn/com/qmth/examcloud/support/examing/ExamHeartbeat.java

@@ -13,24 +13,9 @@ public class ExamHeartbeat implements JsonSerializable {
 	private static final long serialVersionUID = 2981954395650966836L;
 
 	/**
-	 * 顶级机构ID
+	 * 考试记录ID
 	 */
-	private Long rootOrgId;
-
-	/**
-	 * 学生ID
-	 */
-	private Long studentId;
-
-	/**
-	 * 考试ID
-	 */
-	private Long examId;
-
-	/**
-	 * 课程ID
-	 */
-	private Long courseId;
+	private Long examRecordDataId;
 
 	/**
 	 * 心跳次数
@@ -42,36 +27,12 @@ public class ExamHeartbeat implements JsonSerializable {
 	 */
 	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 Long getExamRecordDataId() {
+		return examRecordDataId;
 	}
 
-	public void setCourseId(Long courseId) {
-		this.courseId = courseId;
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
 	}
 
 	public Long getTimes() {

+ 6 - 0
src/main/java/cn/com/qmth/examcloud/support/redis/RedisKeyBuilder.java

@@ -12,6 +12,12 @@ public interface RedisKeyBuilder {
 	@RedisKeyDefine(value = "网考考试会话", Prefix = "OE_SESSION")
 	String examingSessionKey(Long studentId);
 
+	@RedisKeyDefine(value = "考试活动时间", Prefix = "OE_ACTIVE")
+	String examActiveTimeKey(Long examRecordDataId);
+
+	@RedisKeyDefine(value = "考试心跳", Prefix = "OE_HEARTBEAT")
+	String examHeartbeatKey(Long examRecordDataId);
+
 	@RedisKeyDefine(value = "网考考试记录", Prefix = "OE_ERD")
 	String examRecordDataKey(Long examRecordDataId);