| | |
| | | @RequiresPermissions("sys:dept:list") |
| | | public Result<List<SysDept>> pageList(@RequestParam Long companyId) { |
| | | List<SysDept> list = sysDeptService.getDeptList(companyId); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | @GetMapping("getList") |
| | | @ApiOperation("部门列表") |
| | | // @RequiresPermissions("sys:dept:list") |
| | | public Result<List<SysDept>> getlist() { |
| | | List<SysDept> list = sysDeptService.getDeptList3(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | |
| | | // @RequiresPermissions("sys:dept:list") |
| | | public Result<List<SysDept>> list() { |
| | | List<SysDept> list = sysDeptService.getDeptTree(); |
| | | |
| | | return Result.ok(list); |
| | | } |
| | | |
| | |
| | | // @RequiresPermissions("sys:dept:list") |
| | | public Result<List<SysDept>> list2() { |
| | | List<SysDept> list = sysDeptService.getDeptTreeRegister(); |
| | | |
| | | return Result.ok(list); |
| | | } |
| | | |