Browse Source

作者:张哲
时间:2023/01/18
类型:优化
描述:里程碑(1)PC知识分类排序

ZizgZh 2 năm trước cách đây
mục cha
commit
bc48a1f298

+ 1 - 0
src/main/java/com/redxun/knowledge/service/KnowledgeCategoryServiceImpl.java

@@ -257,6 +257,7 @@ public class KnowledgeCategoryServiceImpl extends SuperServiceImpl<KnowledgeCate
     private List<KnowledgeCategory> findAllChildren(KnowledgeCategory knowledgeCategory) {
         QueryWrapper<KnowledgeCategory> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("PARENT", knowledgeCategory.getPkId());
+        queryWrapper.orderByAsc("SORT");
         List<KnowledgeCategory> knowledgeCategories = knowledgeCategoryMapper.selectList(queryWrapper);
         return knowledgeCategories;
     }