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 4c426e0..8bb06a6 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 @@ -156,6 +156,8 @@ public class TdLeaveController extends BaseController @GetMapping("/print/{userId}") public String paint(@PathVariable("userId") Long userId, ModelMap mmap) { + TdLeave leaveuser = tdLeaveService.selectTdLeaveById(userId); + mmap.put("leaveuser", leaveuser); mmap.put("user",userService.selectUserById(userId)); mmap.put("posts", postService.selectPostsByUserIds(userId)); SysUser sysUser= getSysUser(); diff --git a/ruoyi-admin/src/main/resources/templates/system/leave/add.html b/ruoyi-admin/src/main/resources/templates/system/leave/add.html index fd110c1..e157d65 100644 --- a/ruoyi-admin/src/main/resources/templates/system/leave/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/leave/add.html @@ -8,10 +8,11 @@