From f66becef254e823dc3338e5fef260bafed37b377 Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Wed, 17 Apr 2024 14:25:16 +0800 Subject: [PATCH] userleave --- .../ruoyi/web/controller/system/TdLeaveController.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java index 8bb06a6..d0c20f9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java @@ -153,15 +153,13 @@ public class TdLeaveController extends BaseController */ @RequiresPermissions("system:leave:print") @Log(title = "人员离职", businessType = BusinessType.PRINT) - @GetMapping("/print/{userId}") - public String paint(@PathVariable("userId") Long userId, ModelMap mmap) + @GetMapping("/print/{Id}/{userId}") + public String paint(@PathVariable("Id") Long Id,@PathVariable("userId") Long userId, ModelMap mmap) { - TdLeave leaveuser = tdLeaveService.selectTdLeaveById(userId); + TdLeave leaveuser = tdLeaveService.selectTdLeaveById(Id); mmap.put("leaveuser", leaveuser); mmap.put("user",userService.selectUserById(userId)); mmap.put("posts", postService.selectPostsByUserIds(userId)); - SysUser sysUser= getSysUser(); - mmap.put("sysUser",sysUser); return prefix + "/leaveprint"; } }