WANG 6 anos atrás
pai
commit
b210b88710

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

@@ -263,20 +263,20 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 			examStudent = new ExamStudentEntity();
 			examStudent.setEnable(true);
 		} else {
-			int countCourseId = examStudentRepo.countByExamIdAndCourseId(examStudent.getExamId(),
-					examStudent.getCourseId());
-			if (2 > countCourseId) {
-				examCourseRelationRepo.deleteByExamIdAndCourseId(examStudent.getExamId(),
-						examStudent.getCourseId());
-			}
-
-			int countPaperType = examStudentRepo.countByExamIdAndCourseIdAndPaperType(
-					examStudent.getExamId(), examStudent.getCourseId(), examStudent.getPaperType());
-			if (2 > countPaperType) {
-				examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPaperType(
-						examStudent.getExamId(), examStudent.getCourseId(),
-						examStudent.getPaperType());
-			}
+//			int countCourseId = examStudentRepo.countByExamIdAndCourseId(examStudent.getExamId(),
+//					examStudent.getCourseId());
+//			if (2 > countCourseId) {
+//				examCourseRelationRepo.deleteByExamIdAndCourseId(examStudent.getExamId(),
+//						examStudent.getCourseId());
+//			}
+//
+//			int countPaperType = examStudentRepo.countByExamIdAndCourseIdAndPaperType(
+//					examStudent.getExamId(), examStudent.getCourseId(), examStudent.getPaperType());
+//			if (2 > countPaperType) {
+//				examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPaperType(
+//						examStudent.getExamId(), examStudent.getCourseId(),
+//						examStudent.getPaperType());
+//			}
 		}
 
 		examStudent.setInfoCollector(examStudentInfo.getInfoCollector());