| | |
| | | insReportService.download(id, reportType, reportPageDto.getCreateOrderUser(), response); |
| | | } |
| | | |
| | | @Operation(summary = "按 Word 原始分页排版预览报告 PDF") |
| | | @GetMapping("/preview") |
| | | @PreAuthorize("@ss.hasPermi('business:reportPreparation')") |
| | | @PersonalScope(permsName = "business:reportPreparation", objectName = ReportPageDto.class, paramName = "createOrderUser") |
| | | public void preview(Integer id, Integer reportType, ReportPageDto reportPageDto, HttpServletResponse response) { |
| | | insReportService.preview(id, reportType, reportPageDto.getCreateOrderUser(), response); |
| | | } |
| | | |
| | | @Operation(summary = "重新生成报告") |
| | | @PostMapping("/regenerate") |
| | | // @PreAuthorize("@ss.hasPermi('business:reportPreparation')") |
| | |
| | | return Result.success(insReportService.upAll(file)); |
| | | } |
| | | |
| | | /** |
| | | * 退回到检验任务 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Operation(summary = "退回到检验任务") |
| | | @Operation(summary = "退回到检验任务或报告审核") |
| | | @PostMapping("/sendBackTask") |
| | | public Result sendBackTask(@RequestBody Map<String, Object> param){ |
| | | Integer id = (Integer) param.get("id"); |
| | | return Result.success(insReportService.sendBackTask(id)); |
| | | Integer id = toInteger(param.get("id")); |
| | | String target = param.get("target") == null ? null : String.valueOf(param.get("target")); |
| | | String reason = param.get("reason") == null ? null : String.valueOf(param.get("reason")); |
| | | return Result.success(insReportService.sendBackTask(id, target, reason)); |
| | | } |
| | | |
| | | /** |