| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dispatch_handle") |
| | | @Api(tags = "调度处理") |
| | | @Api(tags = "调度") |
| | | public class DispatchHandleController { |
| | | |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "上传违规/违建处置结果") |
| | | @PostMapping("/addition_dispose_result") |
| | | public CommonResult searchDisposeList(@RequestParam Integer caseId, |
| | | public CommonResult searchDisposeList(@RequestParam Long caseId, |
| | | @RequestParam Integer type, |
| | | @RequestBody UploadDisposingResultParam uploadDisposingResultParam) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, investigation); |
| | | investigation.setBaseCaseId(caseId); |
| | | investigation.setCreateTime(LocalDateTime.now()); |
| | | investigation.setCreateUser(user.getUserId().intValue()); |
| | | investigation.setCreateUser(user.getUserId().longValue()); |
| | | investigation.setPartyId(partyInfo.getId()); |
| | | iInvestigationService.save(investigation); |
| | | //到达 |
| | |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, arrivalSituation); |
| | | arrivalSituation.setBaseCaseId(caseId); |
| | | arrivalSituation.setCreateTime(LocalDateTime.now()); |
| | | arrivalSituation.setCreateUser(user.getUserId().intValue()); |
| | | arrivalSituation.setCreateUser(user.getUserId().longValue()); |
| | | iArrivalSituationService.save(arrivalSituation); |
| | | //文书 |
| | | Integer illegalBuildingType = 2; |
| | |
| | | writ.setBaseCaseId(caseId); |
| | | writ.setIllegalBuildingId(caseId); |
| | | writ.setCreateTime(LocalDateTime.now()); |
| | | writ.setCreateUser(user.getUserId().intValue()); |
| | | writ.setCreateUser(user.getUserId().longValue()); |
| | | iWritService.save(writ); |
| | | } |
| | | baseCaseService.update(new LambdaUpdateWrapper<BaseCase>().eq(BaseCase::getId, caseId).set(BaseCase::getState, BaseCaseStatus.CHECK)); |
| | |
| | | disposeRecord.setBaseCaseId(caseId); |
| | | disposeRecord.setState(0); |
| | | disposeRecord.setCreateTime(LocalDateTime.now()); |
| | | disposeRecord.setCreateUser(user.getUserId().intValue()); |
| | | disposeRecord.setCreateUser(user.getUserId().longValue()); |
| | | disposeRecord.setStepName("核查"); |
| | | iDisposeRecordService.save(disposeRecord); |
| | | return CommonResult.success("add success"); |