| | |
| | | return CommonResult.success("success"); |
| | | } |
| | | |
| | | @ApiOperation(value = "调度管理-批量删除") |
| | | @DeleteMapping("/batch_case_delete") |
| | | public CommonResult batchCaseDelete(@RequestParam List<Long> ids){ |
| | | ids.forEach( |
| | | item->{ |
| | | BaseCase baseCase = baseCaseService.getOne(new LambdaQueryWrapper<BaseCase>().eq(BaseCase::getId, item)); |
| | | if (baseCase.getCategory()==1){ |
| | | violationsService.removeById(item); |
| | | baseCaseService.removeById(item); |
| | | }else { |
| | | illegalBuildingService.removeById(item); |
| | | baseCaseService.removeById(item); |
| | | } |
| | | } |
| | | ); |
| | | return CommonResult.success("success"); |
| | | } |
| | | |
| | | /** |
| | | * @return com.ycl.api.CommonResult |
| | | * @Description reset case |