wangwei 7 år sedan
förälder
incheckning
0fd68101f8

+ 1 - 1
exam-work-domain/src/main/java/cn/com/qmth/examcloud/service/examwork/dao/CourseGroupRepo.java

@@ -11,7 +11,7 @@ import cn.com.qmth.examcloud.service.examwork.entity.CourseGroup;
 
 
 public interface CourseGroupRepo extends JpaRepository<CourseGroup, Long>, QueryByExampleExecutor<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,
 	List<CourseGroup> findByExamId(@Param("examId") Long examId, @Param("curPage") Integer curPage,
 			@Param("pageSize") Integer pageSize);
 			@Param("pageSize") Integer pageSize);