| | |
| | | * @Description delete illegal buildings or violations |
| | | * @Param [ids, type] |
| | | **/ |
| | | @ApiOperation(value = "删除违规/违建案件") |
| | | @ApiOperation(value = "批处理-删除违规/违建案件") |
| | | @DeleteMapping("/batch_deletion") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "type", value = "1 违规,2 违建", dataType = "Integer") |
| | | }) |
| | | public CommonResult removeCases(@RequestParam String[] ids, @RequestParam Integer type) { |
| | | public CommonResult removeCases(@RequestParam Long[] ids, @RequestParam Integer type) { |
| | | Integer violationType = 1; |
| | | Integer illegalBuildingType = 2; |
| | | List<String> idList = Arrays.asList(ids); |
| | | List<Long> idList = Arrays.asList(ids); |
| | | if (!idList.isEmpty()) { |
| | | if (type == violationType) { |
| | | return CommonResult.success(violationsService.removeBatchByIds(idList)); |