修改文档库下拉数据字典排序

This commit is contained in:
高嵩
2023-07-21 14:59:41 +08:00
parent 8aa877c0ff
commit 910a0bc1c9
@@ -26,10 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.stream.Collectors;
/**
@@ -294,6 +291,7 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
if(CollectionUtils.isNotEmpty(list)){
tree = TreeUtils.getSysCategoryTree(list,cut);
}
Collections.sort(tree, Comparator.comparing(SysCategoryTreeVO::getTitle));
return tree;
}catch (Exception ex){
log.error("查询树形结构失败: " + ex.getMessage());