Browse Source

考试抽题模式

xiatian 2 years ago
parent
commit
db84eab9e2

+ 2 - 0
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamController.java

@@ -28,6 +28,7 @@ import cn.com.qmth.examcloud.core.examwork.api.controller.bean.CopyExamDomain;
 import cn.com.qmth.examcloud.core.examwork.api.controller.bean.ExamDomain;
 import cn.com.qmth.examcloud.core.examwork.api.controller.bean.ExamOrgSettingsDomain;
 import cn.com.qmth.examcloud.core.examwork.api.controller.bean.StudentSpecialSettingsDomain;
+import cn.com.qmth.examcloud.core.examwork.base.enums.CallType;
 import cn.com.qmth.examcloud.core.examwork.base.enums.ExamProperty;
 import cn.com.qmth.examcloud.core.examwork.dao.*;
 import cn.com.qmth.examcloud.core.examwork.dao.entity.*;
@@ -481,6 +482,7 @@ public class ExamController extends ControllerSupport {
         domain.setEndTime(cache.getEndTime());
         domain.setExamTimes(cache.getExamTimes());
         domain.setExamType(ExamType.valueOf(cache.getExamType()));
+        domain.setCallType(CallType.valueOf(cache.getCallType()));
         domain.setId(cache.getId());
         domain.setName(cache.getName());
         domain.setCode(cache.getCode());

+ 12 - 0
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/bean/ExamDomain.java

@@ -10,6 +10,7 @@ import javax.validation.constraints.NotNull;
 import cn.com.qmth.examcloud.api.commons.enums.ExamSpecialSettingsType;
 import cn.com.qmth.examcloud.api.commons.enums.ExamType;
 import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+import cn.com.qmth.examcloud.core.examwork.base.enums.CallType;
 
 /**
  * 类注释
@@ -56,6 +57,8 @@ public class ExamDomain implements JsonSerializable {
 	@Enumerated(EnumType.STRING)
 	private ExamType examType;
 
+	private CallType callType;
+
 	/**
 	 * 考试时长
 	 */
@@ -265,4 +268,13 @@ public class ExamDomain implements JsonSerializable {
 	public void setIpLimitSettingsEnabled(Boolean ipLimitSettingsEnabled) {
 		this.ipLimitSettingsEnabled = ipLimitSettingsEnabled;
 	}
+
+	public CallType getCallType() {
+		return callType;
+	}
+
+	public void setCallType(CallType callType) {
+		this.callType = callType;
+	}
+
 }