|
@@ -96,12 +96,12 @@ public interface ExamStudentDao
|
|
|
|
|
|
public List<ExamStudent> findByExamIdAndSubjectCodeAndUploadTimeNotNull(int examId, String code);
|
|
public List<ExamStudent> findByExamIdAndSubjectCodeAndUploadTimeNotNull(int examId, String code);
|
|
|
|
|
|
- @Query("select s from ExamStudent s where s.examId=?1 and s.subjectCode=?2 and s.absent=false and s.uploadTime!=null "
|
|
|
|
|
|
+ @Query("select s from ExamStudent s where s.examId=?1 and s.subjectCode=?2 and s.absent=false and s.breach=false and s.uploadTime!=null "
|
|
+ "and not exists (select l.id from MarkLibrary l where l.studentId=s.id and l.groupNumber=?3)")
|
|
+ "and not exists (select l.id from MarkLibrary l where l.studentId=s.id and l.groupNumber=?3)")
|
|
public List<ExamStudent> findUnLibraryStudent(Integer examId, String subjectCode, Integer groupNumber,
|
|
public List<ExamStudent> findUnLibraryStudent(Integer examId, String subjectCode, Integer groupNumber,
|
|
Pageable page);
|
|
Pageable page);
|
|
|
|
|
|
- @Query("select s from ExamStudent s where s.examId=?1 and s.subjectCode=?2 and s.absent=false and s.uploadTime!=null and s.uploadTime>=?4 "
|
|
|
|
|
|
+ @Query("select s from ExamStudent s where s.examId=?1 and s.subjectCode=?2 and s.absent=false and s.breach=false and s.uploadTime!=null and s.uploadTime>=?4 "
|
|
+ "and not exists (select l.id from MarkLibrary l where l.studentId=s.id and l.groupNumber=?3)")
|
|
+ "and not exists (select l.id from MarkLibrary l where l.studentId=s.id and l.groupNumber=?3)")
|
|
public List<ExamStudent> findUnLibraryStudent(Integer examId, String subjectCode, Integer groupNumber,
|
|
public List<ExamStudent> findUnLibraryStudent(Integer examId, String subjectCode, Integer groupNumber,
|
|
Date minUploadTime, Pageable page);
|
|
Date minUploadTime, Pageable page);
|