|
@@ -129,13 +129,11 @@ public class SharePathController {
|
|
@Operation(summary = "获取分销人员关系树")
|
|
@Operation(summary = "获取分销人员关系树")
|
|
@PreAuthorize("@ss.hasPermission('distri:share-path:query')")
|
|
@PreAuthorize("@ss.hasPermission('distri:share-path:query')")
|
|
public CommonResult<TreeNode> getTree(@RequestParam("userId") Long userId,
|
|
public CommonResult<TreeNode> getTree(@RequestParam("userId") Long userId,
|
|
- @RequestParam("minDepth") Integer minDepth,
|
|
|
|
|
|
+ @RequestParam(value = "minDepth",defaultValue = "1") Integer minDepth,
|
|
@RequestParam("maxDepth") Integer maxDepth) {
|
|
@RequestParam("maxDepth") Integer maxDepth) {
|
|
TreeNode sharePath = sharePathService.getTree(userId,minDepth,maxDepth);
|
|
TreeNode sharePath = sharePathService.getTree(userId,minDepth,maxDepth);
|
|
return success(sharePath);
|
|
return success(sharePath);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|