Commit a329bb77 by 袁伟铭

修改树形结构

parent c9b7894e
......@@ -8,7 +8,6 @@ import com.zq.resource.vo.DataTreeVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
......@@ -28,7 +27,6 @@ public class AreaService {
.value(systemArea.getId())
.parentId(systemArea.getParentId())
.label(systemArea.getName())
.children(new ArrayList<>())
.build()).collect(Collectors.toList());
return TreeUtils.buildTree(collect, "450000000000");
......
......@@ -10,12 +10,11 @@ import com.zq.common.vo.PageVo;
import com.zq.resource.dao.OrgDeptDao;
import com.zq.resource.entity.OrgDept;
import com.zq.resource.utils.TreeUtils;
import com.zq.resource.vo.OrgDeptFindVo;
import com.zq.resource.vo.DataTreeVo;
import com.zq.resource.vo.OrgDeptFindVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
......@@ -99,7 +98,6 @@ public class DeptService {
.value(String.valueOf(dept.getId()))
.parentId(String.valueOf(dept.getParentId()))
.label(dept.getDeptName())
.children(new ArrayList<>())
.build()).collect(Collectors.toList());
return TreeUtils.buildTree(collect, "0");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment