WANG hace 5 años
padre
commit
a759e80d76

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

@@ -541,6 +541,7 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 			info.setExamSite(cur.getExamSite());
 			info.setSpecialtyName(cur.getSpecialtyName());
 			info.setRemark(cur.getRemark());
+			info.setEnable(true);
 
 			info.setExt1(cur.getExt1());
 			info.setExt2(cur.getExt2());

+ 13 - 0
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/bean/ExamStudentInfo.java

@@ -86,6 +86,11 @@ public class ExamStudentInfo {
 	 */
 	private String courseLevel;
 
+	/**
+	 * 是否可用
+	 */
+	private Boolean enable;
+
 	/**
 	 * 试卷类型
 	 */
@@ -357,4 +362,12 @@ public class ExamStudentInfo {
 		this.ext5 = ext5;
 	}
 
+	public Boolean getEnable() {
+		return enable;
+	}
+
+	public void setEnable(Boolean enable) {
+		this.enable = enable;
+	}
+
 }

+ 6 - 0
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/ExamStudentServiceImpl.java

@@ -312,6 +312,12 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 		examStudent.setExt4(examStudentInfo.getExt4());
 		examStudent.setExt5(examStudentInfo.getExt5());
 
+		Boolean enable = examStudentInfo.getEnable();
+
+		if (null != enable) {
+			examStudent.setEnable(enable);
+		}
+
 		ExamStudentEntity saved = examStudentRepo.save(examStudent);
 
 		ExamCourseRelationEntity relation = new ExamCourseRelationEntity();