WANG 6 years ago
parent
commit
58710c15e3

+ 1 - 1
examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/ExamPaperTypeRelationRepo.java

@@ -19,6 +19,6 @@ public interface ExamPaperTypeRelationRepo
 
 	void deleteByExamId(Long examId);
 
-	void deleteByExamIdAndCourseIdAndPageType(Long examId, Long courseId, String pageType);
+	void deleteByExamIdAndCourseIdAndPaperType(Long examId, Long courseId, String paperType);
 
 }

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

@@ -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());
 			}