| | |
| | | /** |
| | | * 获取用户列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysUser user) { |
| | | startPage(); |
| | | List<SysUser> list = userService.selectUserList(user); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户列表 无数据权限 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/list/no-data-auth") |
| | | public TableDataInfo listNoAuth(SysUser user) { |
| | | startPage(); |
| | | List<SysUser> list = userService.selectUserListNoAuth(user); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | /** |
| | | * 获取部门树列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/deptTree") |
| | | public AjaxResult deptTree(SysDept dept) { |
| | | return success(deptService.selectDeptTreeList(dept)); |
| | | } |
| | | |
| | | /** |
| | | * 获取部门树列表 无数据权限 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/deptTree/no-data-auth") |
| | | public AjaxResult deptTreeNoDataAuth(SysDept dept) { |
| | | return success(deptService.deptTreeNoDataAuth(dept)); |
| | | } |
| | | |
| | | /** |
| | | * 获取部门树列表,流程配置使用 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/flowable/deptTree") |
| | | public AjaxResult flowDeptTree(SysDept dept) { |
| | | return success(deptService.flowDeptTree(dept)); |
| | | } |
| | | |
| | | @GetMapping("/getByDept/{deptId}") |
| | | public AjaxResult getByDept(@PathVariable Long deptId) { |
| | | return success(userService.getByDept(deptId)); |
| | | } |
| | | } |