From 389ccc02709ea7117ecb4ebcb802d3845730d241 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Tue, 19 Nov 2024 10:38:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A3=85=E8=B4=A7=E6=B8=AF?= =?UTF-8?q?=E6=9C=AA=E6=8F=90=E7=AE=B1=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManagePlat/TaskPOLContainerNotPickUpService.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskPOLContainerNotPickUpService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskPOLContainerNotPickUpService.cs index 6b84eb05..24eb347f 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskPOLContainerNotPickUpService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskPOLContainerNotPickUpService.cs @@ -376,7 +376,9 @@ namespace Myshipping.Application if (opEmailList.Count > 0) opEmail = string.Join(";", opEmailList.Distinct().ToArray()); - string emailTitle = $"{model.MBL_NO}-{model.VESSEL}/{model.VOYNO}/ 未提箱订舱取消确认"; + var fstOrder = bookingOrderList.FirstOrDefault(); + + string emailTitle = $"{model.MBL_NO}-{fstOrder.VESSEL}/{fstOrder.VOYNO}/ 未提箱订舱取消确认"; //提取当前公共邮箱的配置 DjyUserMailAccount publicMailAccount = _djyUserMailAccount.AsQueryable().Filter(null, true).First(x => x.TenantId == UserManager.TENANT_ID && x.ShowName == "PublicSend" @@ -530,9 +532,11 @@ namespace Myshipping.Application baseHtml = baseHtml.Replace("#BillNo#", ""); } - if (!string.IsNullOrWhiteSpace(model.VESSEL)) + var fstOrderInfo = bookingOrderList.FirstOrDefault(); + + if (!string.IsNullOrWhiteSpace(fstOrderInfo.VESSEL)) { - string s = $"{model.VESSEL}/{model.VOYNO}"; + string s = $"{fstOrderInfo.VESSEL}/{fstOrderInfo.VOYNO}"; baseHtml = baseHtml.Replace("#VesselVoyno#", s); } else