ting.yin 1 年之前
父节点
当前提交
46427ffe93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stmms-biz/src/main/java/cn/com/qmth/stmms/biz/exam/dao/InspectHistoryDao.java

+ 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(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