修改视频排序

This commit is contained in:
wuchunlei
2024-09-14 17:21:02 +08:00
parent 87cdd83a45
commit 8e4da8be13

View File

@@ -55,7 +55,10 @@ public class CourseCatalogueChapterServiceImpl extends ServiceImpl<CourseCatalog
CourseCatalogueChapterEntity byId = this.getById(chapterId); CourseCatalogueChapterEntity byId = this.getById(chapterId);
HashMap<String, Object> flag = new HashMap<>(); HashMap<String, Object> flag = new HashMap<>();
flag.put("detail",byId); flag.put("detail",byId);
List<CourseCatalogueChapterVideoEntity> courseCatalogueChapterVideoEntities = courseCatalogueChapterVideoDao.selectList(new LambdaQueryWrapper<CourseCatalogueChapterVideoEntity>().eq(CourseCatalogueChapterVideoEntity::getChapterId, chapterId)); List<CourseCatalogueChapterVideoEntity> courseCatalogueChapterVideoEntities = courseCatalogueChapterVideoDao
.selectList(new LambdaQueryWrapper<CourseCatalogueChapterVideoEntity>()
.eq(CourseCatalogueChapterVideoEntity::getChapterId, chapterId)
.orderByAsc(CourseCatalogueChapterVideoEntity::getSort));
for(CourseCatalogueChapterVideoEntity c : courseCatalogueChapterVideoEntities){ for(CourseCatalogueChapterVideoEntity c : courseCatalogueChapterVideoEntities){
if(c.getType()==1){ if(c.getType()==1){
continue; continue;