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"; } }