|
@@ -11,7 +11,7 @@ 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 limit ?2,?3", nativeQuery = true)
|
|
|
+ @Query(value = "select * from ecs_exam_course_group t where t.exam_id=?1 order by id desc limit ?2,?3", nativeQuery = true)
|
|
|
List<CourseGroup> findByExamId(@Param("examId") Long examId, @Param("curPage") Integer curPage,
|
|
|
@Param("pageSize") Integer pageSize);
|
|
|
|