|
@@ -45,8 +45,10 @@ public class TmDepartmentController {
|
|
|
* 获取部门下拉树列表
|
|
|
*/
|
|
|
@GetMapping("/treeselect")
|
|
|
- public ResultData treeselect() {
|
|
|
-
|
|
|
+ public ResultData treeselect(@RequestParam(required = false) String deptId) {
|
|
|
+ if(StringUtils.isNotBlank(deptId)){
|
|
|
+ return ResultData.ok(departmentService.getDeptList(deptId));
|
|
|
+ }
|
|
|
return ResultData.ok(departmentService.getDeptList());
|
|
|
}
|
|
|
|