| | |
| | | return CommonResult.success(departService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批处理-开启或者禁用部门") |
| | | @PutMapping(value = "/batch_status") |
| | | @LogSave(operationType = "部门管理", contain = "批量开启或者禁用部门") |
| | | public CommonResult updateBatch(@RequestBody List<UmsDepart> umsDepartList) { |
| | | if (umsDepartList.isEmpty()) { |
| | | return CommonResult.failed("bad request parameter"); |
| | | } |
| | | return CommonResult.success(departService.updateBatchById(umsDepartList)); |
| | | } |
| | | |
| | | @ApiOperation("详情") |
| | | @PostMapping(value = "/detail") |
| | | @LogSave(operationType = "部门管理", contain = "查看部门") |
| | |
| | | @PutMapping(value = "/user_update_depart") |
| | | public CommonResult userUpdateDepart(@RequestParam Long userId, |
| | | @RequestParam Long departId) { |
| | | umsAdminDepartService.userUpdateDepart(userId,departId); |
| | | umsAdminDepartService.userUpdateDepart(userId, departId); |
| | | return CommonResult.success("update success"); |
| | | } |
| | | |