zelong.shao

task|邮件历史表记录添加

...@@ -55,7 +55,7 @@ public class DuplicateConsignmentEmailServiceImpl extends BaseService implements ...@@ -55,7 +55,7 @@ public class DuplicateConsignmentEmailServiceImpl extends BaseService implements
55 /** 55 /**
56 * 更新邮件实体 56 * 更新邮件实体
57 */ 57 */
58 - duplicateEmailUtil.updateEmail(result,email,cacheSystem); 58 + duplicateEmailUtil.updateEmail(result,email,cacheSystem,mailConfigDto);
59 /** 59 /**
60 * 更新数据库 60 * 更新数据库
61 */ 61 */
......
...@@ -115,11 +115,12 @@ public class DuplicateEmailUtil { ...@@ -115,11 +115,12 @@ public class DuplicateEmailUtil {
115 * @param cacheSystem 115 * @param cacheSystem
116 * @return com.fedex.connect.common.model.biz.Email 116 * @return com.fedex.connect.common.model.biz.Email
117 */ 117 */
118 - public void updateEmail(boolean result, Email email, CacheSystem cacheSystem){ 118 + public void updateEmail(boolean result, Email email, CacheSystem cacheSystem,MailConfigDto mailConfigDto){
119 DictionaryEntries pending = cacheSystem.getDicEmailStatus(EmailStatusEnum.PENDING.getCode()); 119 DictionaryEntries pending = cacheSystem.getDicEmailStatus(EmailStatusEnum.PENDING.getCode());
120 DictionaryEntries success = cacheSystem.getDicEmailStatus(EmailStatusEnum.SUCCESS.getCode()); 120 DictionaryEntries success = cacheSystem.getDicEmailStatus(EmailStatusEnum.SUCCESS.getCode());
121 DictionaryEntries failed = cacheSystem.getDicEmailStatus(EmailStatusEnum.FAILED.getCode()); 121 DictionaryEntries failed = cacheSystem.getDicEmailStatus(EmailStatusEnum.FAILED.getCode());
122 email.setSendTime(new Date()); 122 email.setSendTime(new Date());
123 + email.setBody(mailConfigDto.getContent());
123 if (result){ 124 if (result){
124 email.setStatusCode(success.getCode()); 125 email.setStatusCode(success.getCode());
125 email.setStatusName(success.getDescription()); 126 email.setStatusName(success.getDescription());
......