Browse Source

Merge branch 'dev' into dev(milestone2)

ZizgZh 2 years ago
parent
commit
c161a50598

+ 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;
     }