|
@@ -89,6 +89,7 @@ public class MarketingCampaignSopDetailServiceImpl
|
|
|
|
|
|
|
|
Map<Long,CustomerVO> customerEntityMap = customerVOList.stream().collect(Collectors.toMap(CustomerVO::getId, customerVO -> customerVO));
|
|
Map<Long,CustomerVO> customerEntityMap = customerVOList.stream().collect(Collectors.toMap(CustomerVO::getId, customerVO -> customerVO));
|
|
|
for (MarketEmailsEntity marketEmailsEntity : marketEmailsEntityList) {
|
|
for (MarketEmailsEntity marketEmailsEntity : marketEmailsEntityList) {
|
|
|
|
|
+ String emailContentNew = emailContent;
|
|
|
//查询客户信息
|
|
//查询客户信息
|
|
|
// 客户名称:${customerName}$
|
|
// 客户名称:${customerName}$
|
|
|
// 区域名称:${areaName}$
|
|
// 区域名称:${areaName}$
|
|
@@ -131,13 +132,13 @@ public class MarketingCampaignSopDetailServiceImpl
|
|
|
if (!ObjectUtils.isEmpty(customerEntity.getLiaison().getEmail())){
|
|
if (!ObjectUtils.isEmpty(customerEntity.getLiaison().getEmail())){
|
|
|
email = customerEntity.getLiaison().getEmail();
|
|
email = customerEntity.getLiaison().getEmail();
|
|
|
}
|
|
}
|
|
|
- emailContent = emailContent.replace("${customerName}$", companyName)
|
|
|
|
|
|
|
+ emailContentNew = emailContentNew.replace("${customerName}$", customerName)
|
|
|
.replace("${areaName}$", areaName)
|
|
.replace("${areaName}$", areaName)
|
|
|
.replace("${companyName}$", companyName)
|
|
.replace("${companyName}$", companyName)
|
|
|
.replace("${companyUrl}$", companyUrl)
|
|
.replace("${companyUrl}$", companyUrl)
|
|
|
.replace("${liaisonName}$", liaisonName)
|
|
.replace("${liaisonName}$", liaisonName)
|
|
|
.replace("${email}$", email);
|
|
.replace("${email}$", email);
|
|
|
- marketEmailsEntity.setContent(emailContent);
|
|
|
|
|
|
|
+ marketEmailsEntity.setContent(emailContentNew);
|
|
|
}
|
|
}
|
|
|
if (!ObjectUtils.isEmpty(marketEmailsEntity.getCustomerId()) && !ObjectUtils.isEmpty(customerEntityMap.get(marketEmailsEntity.getCustomerId()).getCustomerCompany()) && !ObjectUtils.isEmpty(customerEntityMap.get(marketEmailsEntity.getCustomerId()).getCustomerCompany().getEmail())){
|
|
if (!ObjectUtils.isEmpty(marketEmailsEntity.getCustomerId()) && !ObjectUtils.isEmpty(customerEntityMap.get(marketEmailsEntity.getCustomerId()).getCustomerCompany()) && !ObjectUtils.isEmpty(customerEntityMap.get(marketEmailsEntity.getCustomerId()).getCustomerCompany().getEmail())){
|
|
|
marketEmailsEntity.setRecipient(customerEntityMap.get(marketEmailsEntity.getCustomerId()).getCustomerCompany().getEmail());
|
|
marketEmailsEntity.setRecipient(customerEntityMap.get(marketEmailsEntity.getCustomerId()).getCustomerCompany().getEmail());
|