| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.common.constant.BaseCaseStatus; |
| | | import com.ycl.common.util.UtilNumber; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.dto.casePool.IllegalBuildingParam; |
| | | import com.ycl.dto.casePool.ViolationParam; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | @Autowired |
| | | IDisposeRecordService iDisposeRecordService; |
| | | |
| | | @Autowired |
| | | UtilNumber utilNumber; |
| | | |
| | | |
| | | @Autowired |
| | |
| | | BeanUtils.copyProperties(violationParam, baseCase); |
| | | baseCase.setEventSource(resource); |
| | | baseCase.setCategory(violation); |
| | | baseCase.setCode(UUID.randomUUID().toString()); |
| | | baseCase.setCode(utilNumber.createCaseCode()); |
| | | baseCase.setState(BaseCaseStatus.PENDING); |
| | | baseCaseService.save(baseCase); |
| | | return CommonResult.success(baseCaseService.saveViolationCase(violationParam, baseCase.getId())); |
| | |
| | | BeanUtils.copyProperties(illegalBuildingParam, baseCase); |
| | | baseCase.setCategory(illegalBuilding); |
| | | baseCase.setEventSource(resource); |
| | | baseCase.setCode(UUID.randomUUID().toString()); |
| | | baseCase.setCode(utilNumber.createCaseCode()); |
| | | baseCase.setState(BaseCaseStatus.PENDING); |
| | | baseCaseService.save(baseCase); |
| | | return CommonResult.success(baseCaseService.saveIllegalBuildingCase(illegalBuildingParam, baseCase.getId())); |
| | |
| | | @ApiOperation(value = "暂不处置重新处置") |
| | | @PutMapping("/reset") |
| | | public CommonResult resetCase(@RequestParam Integer caseId) { |
| | | Integer firstNum = 0; |
| | | Integer firstNum = 1; |
| | | Integer state = iDisposeRecordService |
| | | .list(new LambdaQueryWrapper<DisposeRecord>() |
| | | .eq(DisposeRecord::getBaseCaseId, caseId). |
| | |
| | | baseCaseService.endCase(caseId, result); |
| | | return CommonResult.success("end case success~!"); |
| | | } |
| | | |
| | | |
| | | } |