Browse Source

断点接口返回考试类型信息

xiatian 5 năm trước cách đây
mục cha
commit
3aee11a892

+ 16 - 0
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/bean/CheckExamInProgressInfo.java

@@ -1,5 +1,6 @@
 package cn.com.qmth.examcloud.core.oe.student.bean;
 
+import cn.com.qmth.examcloud.api.commons.enums.ExamType;
 import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
 
 public class CheckExamInProgressInfo implements JsonSerializable{
@@ -29,6 +30,11 @@ public class CheckExamInProgressInfo implements JsonSerializable{
 	 * 活体检测启动分钟数
 	 */
 	private Integer faceVerifyMinute;
+	
+    /**
+     * 考试类型
+     */
+    private ExamType examType;
 
 	public Long getExamRecordDataId() {
 		return examRecordDataId;
@@ -86,4 +92,14 @@ public class CheckExamInProgressInfo implements JsonSerializable{
 		this.isExceed = isExceed;
 	}
 
+    
+    public ExamType getExamType() {
+        return examType;
+    }
+
+    
+    public void setExamType(ExamType examType) {
+        this.examType = examType;
+    }
+
 }

+ 1 - 0
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamControlServiceImpl.java

@@ -1298,6 +1298,7 @@ public class ExamControlServiceImpl implements ExamControlService {
             checkExamInProgressInfo.setUsedTime(usedTime);
             checkExamInProgressInfo.setMaxInterruptNum(maxInterruptNum);
             checkExamInProgressInfo.setInterruptNum(examingRecord.getContinuedCount());
+            checkExamInProgressInfo.setExamType(examingRecord.getExamType());
 
             // 断点续考时重新计算活体检测的分钟数
             Integer faceVerifyMinute = null;