| | |
| | | return CommonResult.success(departService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批处理-开启或者禁用部门") |
| | | @PutMapping(value = "/batch_status") |
| | | @LogSave(operationType = "部门管理", contain = "批量开启或者禁用部门") |
| | | public CommonResult updateBatch(@RequestParam 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 = "查看部门") |