| | |
| | | import com.ycl.dto.casePool.IllegalBuildingParam; |
| | | import com.ycl.dto.casePool.ViolationParam; |
| | | import com.ycl.entity.caseHandler.BaseCase; |
| | | import com.ycl.entity.caseHandler.BaseCaseDetail; |
| | | import com.ycl.entity.caseHandler.DisposeRecord; |
| | | import com.ycl.service.caseHandler.IBaseCaseService; |
| | | import com.ycl.service.caseHandler.IDisposeRecordService; |
| | |
| | | Integer violationType = 1; |
| | | Integer illegalBuildingType = 2; |
| | | if (!ids.isEmpty()) { |
| | | CommonResult.success(baseCaseService.removeBatchByIds(ids)); |
| | | if (type == violationType) { |
| | | return CommonResult.success(violationsService.removeBatchByIds(ids)); |
| | | } else if (type == illegalBuildingType) { |
| | | return CommonResult.success(illegalBuildingService.removeBatchByIds(ids)); |
| | | } |
| | | return CommonResult.success(baseCaseService.removeBatchByIds(ids)); |
| | | } |
| | | return CommonResult.failed("request parameter is null"); |
| | | } |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "事件编号") |
| | | }) |
| | | public CommonResult baseCaseDetail(@PathVariable(value = "code") String code) { |
| | | public CommonResult<BaseCaseDetail> baseCaseDetail(@PathVariable(value = "code") String code) { |
| | | return CommonResult.success(baseCaseService.baseCaseDetail(code)); |
| | | } |
| | | |