修改装货港未提箱

master^2
jianghaiqing 4 days ago
parent 9e0ae1b2d2
commit d67477f297

@ -378,7 +378,16 @@ namespace Myshipping.Application
var fstOrder = bookingOrderList.FirstOrDefault(); var fstOrder = bookingOrderList.FirstOrDefault();
string emailTitle = $"{model.MBL_NO}-{fstOrder.VESSEL}/{fstOrder.VOYNO}/ 未提箱订舱取消确认"; string emailTitle = string.Empty;
if (fstOrder != null && !string.IsNullOrWhiteSpace(fstOrder.VESSEL))
{
emailTitle = $"{model.MBL_NO}-{fstOrder.VESSEL}/{fstOrder.VOYNO}/ 未提箱订舱取消确认";
}
else
{
emailTitle = $"{model.MBL_NO}-{model.VESSEL}/{model.VOYNO}/ 未提箱订舱取消确认";
}
//提取当前公共邮箱的配置 //提取当前公共邮箱的配置
DjyUserMailAccount publicMailAccount = _djyUserMailAccount.AsQueryable().Filter(null, true).First(x => x.TenantId == UserManager.TENANT_ID && x.ShowName == "PublicSend" DjyUserMailAccount publicMailAccount = _djyUserMailAccount.AsQueryable().Filter(null, true).First(x => x.TenantId == UserManager.TENANT_ID && x.ShowName == "PublicSend"
@ -539,6 +548,11 @@ namespace Myshipping.Application
string s = $"{fstOrderInfo.VESSEL}/{fstOrderInfo.VOYNO}"; string s = $"{fstOrderInfo.VESSEL}/{fstOrderInfo.VOYNO}";
baseHtml = baseHtml.Replace("#VesselVoyno#", s); baseHtml = baseHtml.Replace("#VesselVoyno#", s);
} }
else if (!string.IsNullOrWhiteSpace(model.VESSEL))
{
string s = $"{model.VESSEL}/{model.VOYNO}";
baseHtml = baseHtml.Replace("#VesselVoyno#", s);
}
else else
{ {
baseHtml = baseHtml.Replace("#VesselVoyno#", ""); baseHtml = baseHtml.Replace("#VesselVoyno#", "");

Loading…
Cancel
Save