邮件模块 bug -修改保留字冲突

This commit is contained in:
wangjingyi 2022-05-05 18:52:34 +08:00
parent c3335ba2ca
commit 63983bbab3
5 changed files with 8 additions and 8 deletions

View File

@ -29,18 +29,18 @@ public interface MailAccountConvert {
.setHost(mailAccountDO.getHost())
.setPort(mailAccountDO.getPort())
.setAuth(true)
.setFrom(mailAccountDO.getFrom())
.setFrom(mailAccountDO.getFromAddress())
.setUser(mailAccountDO.getUsername())
.setPass(mailAccountDO.getPassword())
.setSslEnable(mailAccountDO.getSslEnable());
};
}
default Map<String, String> convertToMap(MailAccountDO mailAccountDO , String content) {
Map<String , String> map = new HashMap<>();
map.put("from" , mailAccountDO.getFrom());
map.put("from_address" , mailAccountDO.getFromAddress());
map.put("username" , mailAccountDO.getUsername());
map.put("content" , content);
return map;
};
}
}

View File

@ -39,7 +39,7 @@ public class MailLogDO extends BaseDO implements Serializable {
/**
* 邮箱账号
*/
private String from;
private String fromAddress;
/**
* 模版主键

View File

@ -26,7 +26,7 @@ public class MailSendMessage extends AbstractStreamMessage {
* 邮箱地址
*/
@NotNull(message = "邮箱地址不能为空")
private String from;
private String fromAddress;
/**
* 用户名
*/

View File

@ -57,7 +57,7 @@ public class MailProducer {
public void sendMailSendMessage(MailAccountDO mailAccountDO, MailTemplateDO mailTemplateDO, String content, List<String> tos, String title , Long sendLogId) {
MailSendMessage message = new MailSendMessage();
message.setContent(content);
message.setFrom(mailAccountDO.getFrom());
message.setFromAddress(mailAccountDO.getFromAddress());
message.setHost(mailAccountDO.getHost());
message.setPort(mailAccountDO.getPort());
message.setPassword(mailAccountDO.getPassword());

View File

@ -43,7 +43,7 @@ public class MailLogServiceImpl implements MailLogService {
@Override
public Long createMailLog(MailAccountDO mailAccountDO , MailTemplateDO mailTemplateDO , String from, String content, List<String> tos, String title, Boolean isSend) {
MailLogDO.MailLogDOBuilder logDOBuilder = MailLogDO.builder();
logDOBuilder.from(mailAccountDO.getFrom());
logDOBuilder.fromAddress(mailAccountDO.getFromAddress());
logDOBuilder.accountId(mailAccountDO.getId());
logDOBuilder.content(content);
logDOBuilder.title(title);