Commit c3817174 by 杨林龙

优化发送邮件模板

1 parent dcbbd622
......@@ -483,9 +483,25 @@ public class WorkOrderService {
content.append("联系电话:").append(order.getShopTelephone()).append(";\n");
content.append("是否需要安装:").append(order.getNeedInstall().equalsIgnoreCase(TypeConverseEunm.NeedInstallTypeEnum.NEED_INSTALL.getNeedInstallType()) ? TypeConverseEunm.NeedInstallTypeEnum.NEED_INSTALL.getNeedInstallTypeStr() : TypeConverseEunm.NeedInstallTypeEnum.UN_NEED_INSTALL.getNeedInstallTypeStr()).append(";\n");
content.append("期望安装日期:").append(DateUtil.formatDate(order.getServiceTime())).append(";\n");
content.append("安装区域:").append(order.getProvince().concat(order.getCity()).concat(order.getDistrict())).append(";\n");
String installationArea = StringUtils.isEmpty(order.getProvince()) ? "" : order.getProvince()
.concat(StringUtils.isEmpty(order.getCity()) ? "" : order.getCity())
.concat(StringUtils.isEmpty(order.getDistrict()) ? "" : order.getDistrict());
if (StringUtils.isEmpty(installationArea)) {
content.append("安装区域:").append("--").append(";\n");
} else {
content.append("安装区域:").append(installationArea).append(";\n");
}
content.append("联系地址:").append(order.getShopAddress()).append(";\n");
content.append("详细地址:").append(order.getProvince().concat(order.getCity()).concat(order.getDistrict()).concat(order.getServiceAddress())).append(";\n");
String detailAddress = StringUtils.isEmpty(installationArea) ? "" : installationArea
.concat(StringUtils.isEmpty(order.getServiceAddress()) ? "" : order.getServiceAddress());
if (StringUtils.isEmpty(detailAddress)) {
content.append("详细地址:").append("--").append(";\n");
} else {
content.append("详细地址:").append(detailAddress).append(";\n");
}
if (StringUtils.isEmpty(order.getServiceLinkerPhone())) {
content.append("安装联系电话:").append("--").append(";\n");
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!