修改视频排序
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user