调整视频列表排序
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user