| | |
| | | * @Param [ids] |
| | | * @return com.ycl.api.CommonResult<java.lang.Void> |
| | | **/ |
| | | @ApiOperation("删除") |
| | | @PostMapping(value = "/batch_deletion)") |
| | | public CommonResult<Void> delete(@RequestParam String[] ids) { |
| | | departService.removeBatchByIds(Arrays.asList(ids)); |
| | | return CommonResult.success(null); |
| | | @ApiOperation("批处理-删除") |
| | | @PostMapping(value = "/batch_deletion") |
| | | public CommonResult delete(@RequestParam List<Long> ids) { |
| | | if (ids.isEmpty()){ |
| | | return CommonResult.failed("bad request parameter"); |
| | | } |
| | | return CommonResult.success(departService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("详情") |