|
@@ -125,26 +125,28 @@ public class ReportController {
|
|
return Response.success();
|
|
return Response.success();
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping (value = "reportVisual")
|
|
|
|
|
|
+ @PostMapping(value = "reportVisual")
|
|
@Operation(summary = "报告可视化")
|
|
@Operation(summary = "报告可视化")
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public String reportVisual(@RequestBody ReportVO reportVO) throws IOException {
|
|
public String reportVisual(@RequestBody ReportVO reportVO) throws IOException {
|
|
- return Response.success( reportService.reportVisual(reportVO));
|
|
|
|
|
|
+ return Response.success(reportService.reportVisual(reportVO));
|
|
}
|
|
}
|
|
|
|
|
|
- @GetMapping (value = "getPermission")
|
|
|
|
|
|
+ @GetMapping(value = "getPermission")
|
|
@Operation(summary = "获得报告权限")
|
|
@Operation(summary = "获得报告权限")
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public String getPermission() throws IOException {
|
|
|
|
- return Response.success( reportService.getPermession());
|
|
|
|
|
|
+ public String getPermission() throws IOException {
|
|
|
|
+ return Response.success(reportService.getPermession());
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping (value = "addConclusions")
|
|
|
|
|
|
+ @PostMapping(value = "addConclusions")
|
|
@Operation(summary = "添加核心结论")
|
|
@Operation(summary = "添加核心结论")
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public String addConclusions(@RequestBody ConclusionDTO conclusionDTO) throws IOException {
|
|
|
|
- Boolean flag =reportService.addConclusions(conclusionDTO);
|
|
|
|
- if(flag){return Response.success("添加成功");}
|
|
|
|
|
|
+ public String addConclusions(@RequestBody ConclusionDTO conclusionDTO) throws IOException {
|
|
|
|
+ Boolean flag = reportService.addConclusions(conclusionDTO);
|
|
|
|
+ if (flag) {
|
|
|
|
+ return Response.success("添加成功");
|
|
|
|
+ }
|
|
return Response.error("添加失败");
|
|
return Response.error("添加失败");
|
|
}
|
|
}
|
|
|
|
|