|
@@ -137,7 +137,7 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
|
int countPaperType = examStudentRepo.countByExamIdAndCourseIdAndPaperType(
|
|
|
examStudent.getExamId(), examStudent.getCourseId(), examStudent.getPaperType());
|
|
|
if (1 > countPaperType) {
|
|
|
- examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPageType(
|
|
|
+ examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPaperType(
|
|
|
examStudent.getExamId(), examStudent.getCourseId(),
|
|
|
examStudent.getPaperType());
|
|
|
}
|
|
@@ -273,7 +273,7 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
|
int countPaperType = examStudentRepo.countByExamIdAndCourseIdAndPaperType(
|
|
|
examStudent.getExamId(), examStudent.getCourseId(), examStudent.getPaperType());
|
|
|
if (2 > countPaperType) {
|
|
|
- examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPageType(
|
|
|
+ examPaperTypeRelationRepo.deleteByExamIdAndCourseIdAndPaperType(
|
|
|
examStudent.getExamId(), examStudent.getCourseId(),
|
|
|
examStudent.getPaperType());
|
|
|
}
|