wangwei 5 ani în urmă
părinte
comite
0e71581630

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

@@ -317,6 +317,7 @@ public class ExamController extends ControllerSupport {
 			bean.setCreationTime(next.getCreationTime());
 			bean.setUpdateTime(next.getUpdateTime());
 			bean.setExamLimit(next.getExamLimit());
+			bean.setSpecialSettingsType(next.getSpecialSettingsType());
 
 			if (CollectionUtils.isNotEmpty(propertyKeyList)) {
 				Map<String, String> properties = getProperties(bean.getId(), propertyKeyList);

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

@@ -7,6 +7,7 @@ import javax.persistence.EnumType;
 import javax.persistence.Enumerated;
 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;
 
@@ -95,6 +96,11 @@ public class ExamDomain implements JsonSerializable {
 	 */
 	private Boolean examLimit;
 
+	/**
+	 * 特殊设置类型
+	 */
+	private ExamSpecialSettingsType specialSettingsType;
+
 	private Map<String, String> properties;
 
 	public Long getId() {
@@ -225,4 +231,12 @@ public class ExamDomain implements JsonSerializable {
 		this.examLimit = examLimit;
 	}
 
+	public ExamSpecialSettingsType getSpecialSettingsType() {
+		return specialSettingsType;
+	}
+
+	public void setSpecialSettingsType(ExamSpecialSettingsType specialSettingsType) {
+		this.specialSettingsType = specialSettingsType;
+	}
+
 }

+ 6 - 0
examcloud-core-examwork-starter/src/main/resources/exam-properties.xml

@@ -252,4 +252,10 @@
 		<desc>冻结时间外活体检测结束分钟数</desc>
 		<valueType>LONG</valueType>
 	</enum>
+	<enum>
+		<id>43</id>
+		<name>LIMITED_IF_NO_SPECIAL_SETTINGS</name>
+		<desc>无特殊设置时禁止考试</desc>
+		<valueType>BOOLEAN</valueType>
+	</enum>
 </enums>