| | |
| | | @ApiOperation("查询全部部门") |
| | | @GetMapping(value = "/page") |
| | | public CommonResult<IPage<UmsDepartVO>> page(@RequestParam("currentPage") Integer currentPage, @RequestParam("pageSize") Integer pageSize, |
| | | @RequestParam(value = "departName", required = false) String departName) { |
| | | @RequestParam(value = "departName", required = false) String departName) { |
| | | IPage<UmsDepartVO> page = new Page<>(currentPage, pageSize); |
| | | departService.pageDepart(departName, page); |
| | | return CommonResult.success(page); |
| | |
| | | return CommonResult.success(basePageDTO); |
| | | } |
| | | |
| | | @ApiOperation("用户修改角色") |
| | | @PutMapping(value = "/user_update_Role") |
| | | public CommonResult userUpdateRole(@RequestParam Long id, |
| | | @RequestParam List<Long> roles) { |
| | | umsAdminDepartService.userUpdateRoles(id, roles); |
| | | return CommonResult.success("update success"); |
| | | } |
| | | |
| | | @ApiOperation("用户修改部门") |
| | | @PutMapping(value = "/user_update_depart") |
| | | public CommonResult userUpdateDepart(@RequestParam Long userId, |
| | | @RequestParam Long departId) { |
| | | umsAdminDepartService.userUpdateDepart(userId,departId); |
| | | return CommonResult.success("update success"); |
| | | } |
| | | |
| | | @ApiOperation("查询不在部门的剩余人员") |
| | | @GetMapping("/query_surplus_user") |
| | | public CommonResult searchSurplusUser() { |
| | | return CommonResult.success(departService.selectSurplusUser()); |
| | | } |
| | | |
| | | @ApiOperation("查询不在部门的剩余人员和已在部门的人") |
| | | @GetMapping("/query_surplus_exist_user") |
| | | public CommonResult searchSurplusUser(@RequestParam Long id) { |
| | | return CommonResult.success(departService.selectSurplusUserAndExistUser(id)); |
| | | } |
| | | |
| | | @ApiOperation("查询顶级部门") |
| | | @GetMapping(value = "/query_father") |
| | | public CommonResult search() { |