|
@@ -72,15 +72,11 @@ public interface ExamStudentRepo
|
|
|
@Query(value = "select distinct course_level from ec_e_exam_student t where t.student_id=?1", nativeQuery = true)
|
|
|
List<String> queryCourseLevelList(Long studentId);
|
|
|
|
|
|
-// @Query(value = "select DISTINCT student_id from ec_e_exam_student where root_org_id=?1 order by student_id asc limit ?2", nativeQuery = true)
|
|
|
-// List<Long> findLimitStudentIdList(Long rootOrgId, int rowNumber);
|
|
|
-
|
|
|
@Query(value = "select DISTINCT student_id from ec_e_exam_student where root_org_id=?1 and student_id>=?2 order by student_id asc limit ?3", nativeQuery = true)
|
|
|
- List<Long> findLimitStudentIdList(Long rootOrgId, Long maxStudentId,int rowNumber);
|
|
|
-
|
|
|
-// @Query(value = "select DISTINCT student_id from ec_e_exam_student where root_org_id= :rootOrgId and exam_id in (:examIds) order by student_id asc limit :rowNumber", nativeQuery = true)
|
|
|
-// List<Long> findByExamIdLimitStudentIdList(@Param("rootOrgId") Long rootOrgId,@Param("examIds") List<Long> examIds,@Param("rowNumber") int rowNumber);
|
|
|
+ List<Long> findLimitStudentIdList(Long rootOrgId, Long maxStudentId, int rowNumber);
|
|
|
|
|
|
@Query(value = "select DISTINCT student_id from ec_e_exam_student where root_org_id= :rootOrgId and student_id>= :maxStudentId and exam_id in (:examIds) order by student_id asc limit :rowNumber", nativeQuery = true)
|
|
|
- List<Long> findByExamIdLimitStudentIdList(@Param("rootOrgId") Long rootOrgId,@Param("examIds") List<Long> examIds,@Param("maxStudentId") Long maxStudentId,@Param("rowNumber") int rowNumber);
|
|
|
+ List<Long> findByExamIdLimitStudentIdList(@Param("rootOrgId") Long rootOrgId,
|
|
|
+ @Param("examIds") List<Long> examIds, @Param("maxStudentId") Long maxStudentId,
|
|
|
+ @Param("rowNumber") int rowNumber);
|
|
|
}
|