调整视频列表排序

This commit is contained in:
wuchunlei
2024-06-13 13:16:08 +08:00
parent e04de3202a
commit e3941c0b22

View File

@@ -33,6 +33,7 @@ public class CourseCatalogueChapterServiceImpl extends ServiceImpl<CourseCatalog
for (CourseCatalogueChapterEntity chapter:page.getRecords()){
LambdaQueryWrapper<CourseCatalogueChapterVideoEntity> videoWrapper = new LambdaQueryWrapper<>();
videoWrapper.eq(CourseCatalogueChapterVideoEntity::getChapterId,chapter.getId());
videoWrapper.orderByAsc(CourseCatalogueChapterVideoEntity::getSort);
chapter.setVideoList(courseCatalogueChapterVideoDao.selectList(videoWrapper));
}
}