|
@ -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); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|