| | |
| | | import com.ycl.api.BasePageVO; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.depart.DepartManager; |
| | | import com.ycl.entity.depart.UmsDepart; |
| | | import com.ycl.entity.user.UmsDepartManage; |
| | | import com.ycl.service.depart.UmsDepartService; |
| | | import com.ycl.service.user.UmsDepartManageService; |
| | | import com.ycl.utils.auth.UserAuthUtil; |
| | |
| | | @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 id, |
| | | @RequestParam List<UmsDepartManage> departmentIds) { |
| | | umsAdminDepartService.userUpdateDepart(id, departmentIds); |
| | | return CommonResult.success("update success"); |
| | | } |
| | | |
| | | @ApiOperation("查询顶级部门") |
| | | @GetMapping(value = "/query_father") |
| | | public CommonResult search() { |