From 6045af7cf67e0c8b2c7b3b649c1c50589565c86b Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 13 Sep 2024 17:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BF=E9=80=9A=E6=88=AA?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Op/Dtos/SeaExportReq.cs | 6 +++--- ds-wms-service/DS.WMS.Core/Op/EDI/YTEdiHelper.cs | 16 ++++++++-------- .../SeaExportBookingOrClosingEDIService.cs | 11 +++++++++++ 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs index 7393746b..07b43c7b 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportReq.cs @@ -284,7 +284,7 @@ public class SeaExportReq public DateTime? BLIssueSatus { get; set; } /// - /// 付款地点Id + /// 预付地点Id /// public long PrepareAtId { get; set; } @@ -294,7 +294,7 @@ public class SeaExportReq public string PrepareAt { get; set; } /// - /// 预付地点 + /// 付款地点 /// public string PayableAt { get; set; } @@ -1022,7 +1022,7 @@ public class SeaExportReq /// public long ThirdPayAtId { get; set; } /// - /// 预付地点Id + /// 付款地点Id /// public long PayableAtId { get; set; } diff --git a/ds-wms-service/DS.WMS.Core/Op/EDI/YTEdiHelper.cs b/ds-wms-service/DS.WMS.Core/Op/EDI/YTEdiHelper.cs index d9e4ab3a..b6871b92 100644 --- a/ds-wms-service/DS.WMS.Core/Op/EDI/YTEdiHelper.cs +++ b/ds-wms-service/DS.WMS.Core/Op/EDI/YTEdiHelper.cs @@ -642,10 +642,10 @@ namespace DS.WMS.Core.Op.EDI //跟韩工确认增加判断 if (!string.IsNullOrWhiteSpace(headData.BLFRT) && headData.BLFRT.IndexOf("PREPAID") >= 0) { - if (string.IsNullOrWhiteSpace(headData.PREPARDAT)) - { - error = error + "
提单号:" + headData.MBLNO + " 付费方式是预付,预付地点不能为空"; - } + //if (string.IsNullOrWhiteSpace(headData.PREPARDAT)) + //{ + // error = error + "
提单号:" + headData.MBLNO + " 付费方式是预付,预付地点不能为空"; + //} if (!string.IsNullOrWhiteSpace(headData.PAYABLEAT)) { @@ -654,10 +654,10 @@ namespace DS.WMS.Core.Op.EDI } else if (!string.IsNullOrWhiteSpace(headData.BLFRT) && headData.BLFRT.IndexOf("COLLECT") >= 0) { - if (string.IsNullOrWhiteSpace(headData.PAYABLEAT)) - { - error = error + "
提单号:" + headData.MBLNO + " 付费方式是到付,到付地点不能为空"; - } + //if (string.IsNullOrWhiteSpace(headData.PAYABLEAT)) + //{ + // error = error + "
提单号:" + headData.MBLNO + " 付费方式是到付,到付地点不能为空"; + //} if (!string.IsNullOrWhiteSpace(headData.PREPARDAT)) { 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 e276a410..f5db8320 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs @@ -1277,6 +1277,7 @@ namespace DS.WMS.Core.Op.Method } #endregion } + #region 到付地点 @@ -1290,6 +1291,16 @@ namespace DS.WMS.Core.Op.Method } #endregion + //如果处理的是到付,需要把预付地点来对应到付地点 + if (!string.IsNullOrWhiteSpace(order.MBLFrt) && order.MBLFrt.IndexOf("COLLECT") >= 0) + { + primaryModel.PAYABLEATID = primaryModel.PREPARDATID; + primaryModel.PAYABLEAT = order.PrepareAt; + + primaryModel.PREPARDATID = string.Empty; + primaryModel.PREPARDAT = string.Empty; + } + //起运港是CNTAO并且船公司是太平需要判断场站EDI if (ediRouteEnum == EDIRouteEnum.WY) {