/**
* 返回获取父级
*
* @param deptTrees
* @return
*/
public List<DeptTree> getParent(List<DeptTree> deptTrees) {
List<DeptTree> collect = deptTrees
.stream().filter(m -> StrUtil.isNotBlank(m.getPid()) && m.getLevel() != null && m.getLevel() =
lambda实现List转Tree
最新推荐文章于 2024-02-21 15:20:13 发布