WANG 6 tahun lalu
induk
melakukan
68f9016c08

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

@@ -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) {