|
@@ -154,7 +154,7 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
|
Set<String> findSubjectUnFinishByExamId(int examId, LibraryStatus... status);
|
|
|
|
|
|
@Query("select count(l1) from MarkLibrary l1 where l1.examId=?1 and l1.subjectCode=?2 and l1.groupNumber=?3 "
|
|
|
- + "and exists (select mc.id from MarkerClass mc, ExamStudent s where l1.studentId=s.id and mc.userId=?4 and s.className=mc.className)")
|
|
|
+ + "and exists (select mc.id from MarkerClass mc, ExamStudent s where l1.studentId=s.id and mc.examId=?1 and mc.userId=?4 and s.className=mc.className)")
|
|
|
long countFilterClass(Integer examId, String subjectCode, Integer groupNumber, Integer userId);
|
|
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
@@ -162,7 +162,7 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
|
void updateUnansweredCount(Integer id, int unansweredCount);
|
|
|
|
|
|
@Query("select count(l1) from MarkLibrary l1 where l1.examId=?1 and l1.subjectCode=?2 and l1.groupNumber=?3 and l1.status in (?5) "
|
|
|
- + "and exists (select mc.id from MarkerClass mc, ExamStudent s where l1.studentId=s.id and mc.userId=?4 and s.className=mc.className)")
|
|
|
+ + "and exists (select mc.id from MarkerClass mc, ExamStudent s where l1.studentId=s.id and mc.examId=?1 and mc.userId=?4 and s.className=mc.className)")
|
|
|
long countMarkedFilterClass(Integer examId, String subjectCode, Integer groupNumber, Integer userId,
|
|
|
LibraryStatus... status);
|
|
|
}
|