|
@@ -29,7 +29,7 @@ public interface InspectHistoryDao extends PagingAndSortingRepository<InspectHis
|
|
|
InspectHistory findByStudentIdAndInspectRound(Integer studentId, Integer inspectRound);
|
|
|
|
|
|
@Modifying
|
|
|
- @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)")
|
|
|
+ @Query(nativeQuery = true, value = "delete from eb_inspect_history where student_id=?1 and 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
|