Commit 74667872 by 杨林龙

优化邮件发送内容

1 parent fc0fb540
......@@ -448,24 +448,36 @@ public class WorkOrderService {
StringBuilder content = new StringBuilder();
content.append("租赁公司-").append(rootOrg).append(";\n");
content.append("申请编号-").append(order.getPartnerOrderNo()).append(";\n");
content.append("区域-无").append(";\n");
content.append("区域-").append(order.getProvince().concat("/").concat(order.getCity()).concat("/").concat(order.getDistrict())).append(";\n");
content.append("设备组合-").append(buildDeviceCompose(woVehicle.getDeviceCompose())).append(";\n");
content.append("导入时间-").append(DateUtil.formatDate(order.getCreatedDate())).append(";\n");
content.append("分公司-无").append(";\n");
content.append("店面名称-").append(order.getShopName()).append(";\n");
content.append("店面联系电话-").append(order.getShopTelephone()).append(";\n");
content.append("要求安装日期-").append(DateUtil.formatDate(order.getServiceTime())).append(";\n");
if (StringUtils.isEmpty(woVehicle.getLesseeName())) {
content.append("客户姓名-无").append(";\n");
} else {
content.append("客户姓名-").append(woVehicle.getLesseeName()).append(";\n");
}
content.append("车架号-").append(woVehicle.getVin()).append(";\n");
content.append("颜色-无").append(";\n");
if (StringUtils.isEmpty(woVehicle.getSubBrandName()) && StringUtils.isEmpty(woVehicle.getSeriesName()) && StringUtils.isEmpty(woVehicle.getTypeName())) {
content.append("车型-无").append(";\n");
} else {
String modelType = (woVehicle.getSubBrandName() == null ? "--" : woVehicle.getSubBrandName())
.concat("/").concat(woVehicle.getSeriesName() == null ? "--" : woVehicle.getSeriesName())
.concat("/").concat(woVehicle.getTypeName() == null ? "--" : woVehicle.getTypeName());
content.append("车型-").append(modelType).append(";\n");
}
content.append("贷款期限-无").append(";\n");
content.append("租凭方式-无").append(";\n");
content.append("安装地址-").append(order.getServiceAddress()).append(";\n");
if (StringUtils.isEmpty(order.getRemark())) {
content.append("备注—无").append(";\n");
} else {
content.append("备注—").append(order.getRemark()).append(";\n");
}
content.append("安装方式—广联安装").append(";\n");
MailTemplateMessageDTO messageDTO = new MailTemplateMessageDTO();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!