From 8e4da8be13b97d2e48e6513fadba52dc09ed3429 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Sat, 14 Sep 2024 17:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CourseCatalogueChapterServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/peanut/modules/sociology/service/impl/CourseCatalogueChapterServiceImpl.java b/src/main/java/com/peanut/modules/sociology/service/impl/CourseCatalogueChapterServiceImpl.java index 00a884b1..a49645a8 100644 --- a/src/main/java/com/peanut/modules/sociology/service/impl/CourseCatalogueChapterServiceImpl.java +++ b/src/main/java/com/peanut/modules/sociology/service/impl/CourseCatalogueChapterServiceImpl.java @@ -55,7 +55,10 @@ public class CourseCatalogueChapterServiceImpl extends ServiceImpl flag = new HashMap<>(); flag.put("detail",byId); - List courseCatalogueChapterVideoEntities = courseCatalogueChapterVideoDao.selectList(new LambdaQueryWrapper().eq(CourseCatalogueChapterVideoEntity::getChapterId, chapterId)); + List courseCatalogueChapterVideoEntities = courseCatalogueChapterVideoDao + .selectList(new LambdaQueryWrapper() + .eq(CourseCatalogueChapterVideoEntity::getChapterId, chapterId) + .orderByAsc(CourseCatalogueChapterVideoEntity::getSort)); for(CourseCatalogueChapterVideoEntity c : courseCatalogueChapterVideoEntities){ if(c.getType()==1){ continue;