智慧保安后台管理-外网项目备份
Administrator
2021-11-11 f0e2074cb81056813fe8b34aa6b7d8a2419e1bdf
src/main/java/org/springblade/modules/system/controller/DeptController.java
@@ -125,8 +125,19 @@
   @GetMapping("/lazy-tree")
   @ApiOperationSupport(order = 5)
   @ApiOperation(value = "懒加载树形结构", notes = "树形结构")
   public R<List<DeptVO>> lazyTree(String tenantId, Long parentId, BladeUser bladeUser) {
      List<DeptVO> tree = deptService.lazyTree(Func.toStrWithEmpty(tenantId, bladeUser.getTenantId()), parentId);
   public R<List<DeptVO>> lazyTree(String tenantId, Long parentId, BladeUser bladeUser,String userId) {
      List<DeptVO> tree = deptService.lazyTree(Func.toStrWithEmpty(tenantId, bladeUser.getTenantId()), parentId,userId);
      return R.data(tree);
   }
   /**
    * 懒加载获取部门树形结构,根据辖区查询
    */
   @GetMapping("/lazy-tree-jurisdiction")
   @ApiOperationSupport(order = 5)
   @ApiOperation(value = "懒加载树形结构", notes = "树形结构")
   public R<List<DeptVO>> lazyTreeJurisdiction(String jurisdiction, Long parentId) {
      List<DeptVO> tree = deptService.lazyTreeJurisdiction(jurisdiction,parentId);
      return R.data(tree);
   }