Browse Source

[fix]

部门管理
新增获取部门列表controller接口;
dev
王晓迪 1 week ago
parent
commit
157b6d40ab
  1. 10
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java

10
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java

@ -19,6 +19,8 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/** /**
* 部门信息 * 部门信息
@ -202,4 +204,12 @@ public class SysDeptController extends BaseController
List<Ztree> ztrees = deptService.roleDeptTreeData(role); List<Ztree> ztrees = deptService.roleDeptTreeData(role);
return ztrees; return ztrees;
} }
@GetMapping("/selectDeptList")
@ResponseBody
public AjaxResult selectDeptList(SysDept dept)
{
List<SysDept> deptList = deptService.selectDeptList(dept);
return success(deptList);
}
} }

Loading…
Cancel
Save