From 6ece4076eb68e07b62bcd133cbbd4b8c3d3b165c Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Fri, 15 Apr 2022 11:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=B6=E4=BB=B6=E4=BA=BA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../systemoa/service/mail/impl/MailServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java b/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java index 8198250..b9f225c 100644 --- a/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java +++ b/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java @@ -12,7 +12,9 @@ import ink.wgink.common.base.DefaultBaseService; import ink.wgink.common.component.SecurityComponent; import ink.wgink.pojo.ListPage; import ink.wgink.pojo.bos.UserInfoBO; +import ink.wgink.pojo.dtos.user.UserDTO; import ink.wgink.pojo.result.SuccessResultList; +import ink.wgink.service.user.service.IUserService; import ink.wgink.util.UUIDUtil; import ink.wgink.util.date.DateUtil; import ink.wgink.util.map.HashMapUtil; @@ -36,6 +38,8 @@ public class MailServiceImpl extends DefaultBaseService implements IMailService private IMailDao mailDao; @Autowired private SecurityComponent securityComponent; + @Autowired + private IUserService userService; @Override @@ -133,7 +137,8 @@ public class MailServiceImpl extends DefaultBaseService implements IMailService } } } - dto.setCreatorNames(currentUser.getUserUsername() + "[" + currentUser.getUserName() + "]"); + UserDTO sendDto = userService.get(dto.getCreator()); + dto.setCreatorNames(sendDto.getUserUsername() + "[" + sendDto.getUserName() + "]"); String spx = "




在 "+ dto.getGmtCreate() + ", " +""+ currentUser.getUserUsername() + " [" + currentUser.getUserName() + "] 写道:" +"

" + "


";