|
@@ -263,20 +263,20 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
examStudent = new ExamStudentEntity();
|
|
examStudent = new ExamStudentEntity();
|
|
examStudent.setEnable(true);
|
|
examStudent.setEnable(true);
|
|
} else {
|
|
} 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());
|
|
examStudent.setInfoCollector(examStudentInfo.getInfoCollector());
|