ting.yin hai 1 ano
pai
achega
bbaeb7cd4f

+ 1 - 1
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/exam/dao/InspectHistoryDao.java

@@ -29,7 +29,7 @@ public interface InspectHistoryDao extends PagingAndSortingRepository<InspectHis
     InspectHistory findByStudentIdAndInspectRound(Integer studentId, Integer inspectRound);
 
     @Modifying
-    @Query("delete from InspectHistory m where m.studentId=?1 and m.inspectRound=(select es.inspectRound from ExamSubject es,ExamStudent s where s.id=?1 and es.examId=s.examId and es.code=s.subjectCode)")
+    @Query(nativeQuery = true, value = "delete from eb_inspect_history m where m.student_id=?1 and m.inspect_round=(select es.inspect_round from eb_exam_subject es,eb_exam_student s where s.id=?1 and es.exam_id=s.exam_id and es.code=s.subject_code)")
     void deleteByStudentIdAndInspectRound(Integer studentId);
 
     @Modifying