修改收件人显示错误的问题

This commit is contained in:
wans 2022-04-15 11:25:02 +08:00
parent cb1dc4b9b7
commit 6ece4076eb

View File

@ -12,7 +12,9 @@ import ink.wgink.common.base.DefaultBaseService;
import ink.wgink.common.component.SecurityComponent; import ink.wgink.common.component.SecurityComponent;
import ink.wgink.pojo.ListPage; import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.bos.UserInfoBO; import ink.wgink.pojo.bos.UserInfoBO;
import ink.wgink.pojo.dtos.user.UserDTO;
import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.pojo.result.SuccessResultList;
import ink.wgink.service.user.service.IUserService;
import ink.wgink.util.UUIDUtil; import ink.wgink.util.UUIDUtil;
import ink.wgink.util.date.DateUtil; import ink.wgink.util.date.DateUtil;
import ink.wgink.util.map.HashMapUtil; import ink.wgink.util.map.HashMapUtil;
@ -36,6 +38,8 @@ public class MailServiceImpl extends DefaultBaseService implements IMailService
private IMailDao mailDao; private IMailDao mailDao;
@Autowired @Autowired
private SecurityComponent securityComponent; private SecurityComponent securityComponent;
@Autowired
private IUserService userService;
@Override @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 = "<p><br></p><p><br></p><p><br></p><p>在 "+ dto.getGmtCreate() + ", " String spx = "<p><br></p><p><br></p><p><br></p><p>在 "+ dto.getGmtCreate() + ", "
+"<span style='color: blue;'>"+ currentUser.getUserUsername() + " [" + currentUser.getUserName() + "]</span> 写道:" +"</p>" + +"<span style='color: blue;'>"+ currentUser.getUserUsername() + " [" + currentUser.getUserName() + "]</span> 写道:" +"</p>" +
"<p><hr style='border: 1px dashed'></hr></p>"; "<p><hr style='border: 1px dashed'></hr></p>";