| | |
| | | * @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)); |
| | |
| | | @ApiOperation(value = "案件状态修改") |
| | | @PutMapping("/case_status_update") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "处理状态(0误报 1上报 2立案 3派遣 4处置 5核查 6结案7处理中8暂不处理)",name = "state") |
| | | @ApiImplicitParam(value = "处理状态(0误报 1上报 2立案 3派遣 4处置 5核查 6结案7处理中8暂不处理)", name = "state") |
| | | }) |
| | | public CommonResult updateCaseStatus(@RequestParam Integer caseId, @RequestParam Integer state) { |
| | | return CommonResult.success(baseCaseService |
| | |
| | | |
| | | @ApiOperation(value = "结案") |
| | | @PutMapping("/end_case") |
| | | public CommonResult endCase(@RequestParam Integer caseId,@RequestParam String result){ |
| | | baseCaseService.endCase(caseId,result); |
| | | public CommonResult endCase(@RequestParam Integer caseId, @RequestParam String result) { |
| | | baseCaseService.endCase(caseId, result); |
| | | return CommonResult.success("end case success~!"); |
| | | } |
| | | } |