| | |
| | | return CommonResult.success(investigationService.getInvestigationByProjectId(projectId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据id获取现场勘验记录表详情") |
| | | @GetMapping("/detail/{investigationId}") |
| | | public CommonResult investigationDetail(@PathVariable(value = "investigationId") Long investigationId){ |
| | | return CommonResult.success(investigationService.getInvestigationById(investigationId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "创建现场勘验记录表") |
| | | @PostMapping("/add") |
| | | public CommonResult addInvestigation(@Validated @RequestBody AssInvestigation investigation){ |
| | | //app端只能保存数据,不能改变项目流程状态 |
| | | investigation.setState(ApproveStatusEnum.TEMPORARY.getCode()); |
| | | return CommonResult.success(investigationService.addInvestigation(investigation, RequestSourceEnum.APP.getCode())); |
| | | return CommonResult.success(investigationService.addInvestigation(investigation)); |
| | | } |
| | | |
| | | @RepeatSubmit |