From dc1edae89817505ceb1d2c46174dc96f5c9a420f Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Thu, 15 Aug 2024 15:12:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A3=80=E6=9F=A5=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/check/CheckReportController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java index 0f7f430..5685e6a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java @@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.TdCheck; import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.dto.TdCheckReportDTO; import com.ruoyi.web.controller.manager.CheckReportManager; @@ -174,5 +175,16 @@ public class CheckReportController extends BaseController { return toAjax(checkReportManager.saveOrUpdate(checkReportDTO)); } + /** + * 打印操作 + */ + @RequiresPermissions("system:check:print") + @GetMapping("/checkprint/{checkId}") + public String checkPrint(@PathVariable("checkId") String checkId, ModelMap mmap) { + TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId); + mmap.put("tdCheckReportDTO", tdCheckReportDTO); + return prefix + "/checkprint"; + } + }