From b9d0162385868bfe28c0b4ec7e5630d5bf75a3f6 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Tue, 15 Oct 2024 17:53:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ONE=20=E6=88=AA=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Op/Method/SeaExportBookingOrClosingEDIService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs index 99ec4925..cc17305b 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs @@ -1545,6 +1545,16 @@ namespace DS.WMS.Core.Op.Method if (string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL)) { primaryModel.EDIATTNEMAIL = ftpSet.SendEmail; + + if (ediRouteEnum == EDIRouteEnum.YT && string.IsNullOrWhiteSpace(primaryModel.EDIATTNEMAIL)) + { + var currUser = db.Queryable().Where(x => x.Id == long.Parse(user.UserId)).First(); + + if (currUser != null && !string.IsNullOrWhiteSpace(currUser.Email)) + { + primaryModel.EDIATTNEMAIL = currUser.Email; + } + } } primaryModel.AMSCONSIGNEE = ediExtModel.AMSConsignee;