修改文档库下拉数据字典排序
This commit is contained in:
+2
-4
@@ -26,10 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -294,6 +291,7 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
|
|||||||
if(CollectionUtils.isNotEmpty(list)){
|
if(CollectionUtils.isNotEmpty(list)){
|
||||||
tree = TreeUtils.getSysCategoryTree(list,cut);
|
tree = TreeUtils.getSysCategoryTree(list,cut);
|
||||||
}
|
}
|
||||||
|
Collections.sort(tree, Comparator.comparing(SysCategoryTreeVO::getTitle));
|
||||||
return tree;
|
return tree;
|
||||||
}catch (Exception ex){
|
}catch (Exception ex){
|
||||||
log.error("查询树形结构失败: " + ex.getMessage());
|
log.error("查询树形结构失败: " + ex.getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user