|
@@ -126,21 +126,6 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
|
throw new StatusException("E-150112", examStudent.getName() + "已开始考试,不能删除");
|
|
|
}
|
|
|
examStudentRepo.delete(examStudent);
|
|
|
-
|
|
|
- int countCourseId = examStudentRepo.countByExamIdAndCourseId(examStudent.getExamId(),
|
|
|
- examStudent.getCourseId());
|
|
|
- if (1 > countCourseId) {
|
|
|
- examCourseRelationRepo.deleteByExamIdAndCourseId(examStudent.getExamId(),
|
|
|
- examStudent.getCourseId());
|
|
|
- }
|
|
|
-
|
|
|
- int countPaperType = examStudentRepo.countByExamIdAndCourseIdAndPaperType(
|
|
|
- examStudent.getExamId(), examStudent.getCourseId(), examStudent.getPaperType());
|
|
|
- if (1 > countPaperType) {
|
|
|
- examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPageType(
|
|
|
- examStudent.getExamId(), examStudent.getCourseId(),
|
|
|
- examStudent.getPaperType());
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
for (ExamStudentEntity cur : examStudents) {
|