From ed56ae711e18c6f7624dac633c4af3ecfcf09520 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 18 九月 2026 16:40:19 +0800
Subject: [PATCH] fix:报告生成所有带导出值批注的检验项

---
 inspect-server/src/main/java/com/ruoyi/inspect/controller/InsReportController.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsReportController.java b/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsReportController.java
index a85f42d..1fef16d 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsReportController.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsReportController.java
@@ -150,6 +150,14 @@
         return Result.success(insReportService.downAll(ids));
     }
 
+    @ApiOperation(value = "鎶ュ憡涓嬭浇")
+    @GetMapping("/download")
+    @PreAuthorize("@ss.hasPermi('business:reportPreparation')")
+    @PersonalScope(permsName = "business:reportPreparation", objectName = ReportPageDto.class, paramName = "createOrderUser")
+    public void download(Integer id, ReportPageDto reportPageDto, HttpServletResponse response) {
+        insReportService.download(id, reportPageDto.getCreateOrderUser(), response);
+    }
+
     @ApiOperation(value = "鎶ュ憡鎵归噺涓婁紶")
     @PostMapping("/upAll")
     public Result upAll(MultipartFile file) throws IOException {
@@ -167,4 +175,18 @@
         Integer id = (Integer) param.get("id");
         return Result.success(insReportService.sendBackTask(id));
     }
+
+    /**
+     * 鎶ュ憡瀵煎嚭
+     * @param dto
+     * @param response
+     * @throws Exception
+     */
+    @ApiOperation(value = "鎶ュ憡瀵煎嚭")
+    @GetMapping("/reportAllExport")
+    @PreAuthorize("@ss.hasPermi('business:reportPreparation')")
+    @PersonalScope(permsName = "business:reportPreparation", objectName = ReportPageDto.class, paramName = "createOrderUser")
+    public void reportAllExport(ReportPageDto dto, HttpServletResponse response) throws Exception {
+        insReportService.reportAllExport(dto,response);
+    }
 }

--
Gitblit v1.9.3