| | |
| | | /** |
| | | * 获取部门管理管理列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:department:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:department')") |
| | | @ApiOperation(value = "获取部门管理分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<DeptVO>> pageList(@RequestBody TDeptQuery query) { |
| | |
| | | /** |
| | | * 获取部门管理管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取部门管理列表") |
| | | @ApiOperation(value = "获取部门管理列表-启用状态") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TDept>> list() { |
| | | return R.ok(deptService.list()); |
| | | return R.ok(deptService.list(Wrappers.lambdaQuery(TDept.class) |
| | | .eq(TDept::getStatus, 1))); |
| | | } |
| | | /** |
| | | * 获取部门管理管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取部门管理列表-所有状态") |
| | | @PostMapping(value = "/listAll") |
| | | public R<List<TDept>> listAll() { |
| | | return R.ok(deptService.list(Wrappers.lambdaQuery(TDept.class))); |
| | | } |
| | | |
| | | /** |