|
@@ -11,7 +11,8 @@ import cn.com.qmth.examcloud.service.examwork.entity.CourseGroup;
|
|
|
|
|
|
public interface CourseGroupRepo extends JpaRepository<CourseGroup, Long>, QueryByExampleExecutor<CourseGroup> {
|
|
|
|
|
|
- @Query(value = "select * from ecs_exam_course_group t where t.exam_id=?1 order by id", nativeQuery = true)
|
|
|
- List<CourseGroup> findByExamId(@Param("examId") Long examId);
|
|
|
+ @Query(value = "select * from ecs_exam_course_group t where t.exam_id=?1 order by id limit ?2,?3", nativeQuery = true)
|
|
|
+ List<CourseGroup> findByExamId(@Param("examId") Long examId, @Param("curPage") Integer curPage,
|
|
|
+ @Param("pageSize") Integer pageSize);
|
|
|
|
|
|
}
|