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