|
@@ -159,6 +159,9 @@ public class SharePathServiceImpl implements SharePathService {
|
|
@Override
|
|
@Override
|
|
public TreeNode getTree(Long userId, Integer minDepth, Integer maxDepth) {
|
|
public TreeNode getTree(Long userId, Integer minDepth, Integer maxDepth) {
|
|
// 如果user为空, 则查询全部信息
|
|
// 如果user为空, 则查询全部信息
|
|
|
|
+ if (userId == null) {
|
|
|
|
+ userId = PT_ID;
|
|
|
|
+ }
|
|
DuserDO sharePathDO = duserService.getDuser(userId);
|
|
DuserDO sharePathDO = duserService.getDuser(userId);
|
|
List<TreeNode> treeNodes = sharePathMapper.selectDescendants(userId, minDepth, maxDepth);
|
|
List<TreeNode> treeNodes = sharePathMapper.selectDescendants(userId, minDepth, maxDepth);
|
|
TreeNode build = TreeNode.builder()
|
|
TreeNode build = TreeNode.builder()
|