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 30908f7f..95462c33 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportBookingOrClosingEDIService.cs @@ -1000,7 +1000,7 @@ namespace DS.WMS.Core.Op.Method var carrMap = tenantDb.Queryable().Where(t => t.Module.Equals("BOOK_OR_CLOSING_RT", StringComparison.OrdinalIgnoreCase) && t.LinkId == order.CarrierId) .First(); - var carrCode = seaComService.GetClientCode(order.CarrierId, tenantDb); + var carrCode = seaComService.GetCarrierCode(order.CarrierId, tenantDb); EDIRouteEnum ediRouteEnum = GetEDIRoute(carrCode, carrMap); if (ediRouteEnum == EDIRouteEnum.YT) diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportCommonService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportCommonService.cs index 32a97d6d..37fb8b7f 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportCommonService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportCommonService.cs @@ -473,12 +473,12 @@ namespace DS.WMS.Core.Op.Method { if (Id == 0) return ""; - var client = tenantDb.Queryable().First(v => v.Id == Id && v.Status == StatusEnum.Enable.ToEnumInt()); + var client = tenantDb.Queryable().First(v => v.Id == Id); if (client.IsNull()) { throw new Exception("请检查船公司信息"); } - return client.EDICode.IsNull() ? client.CodeName : client.EDICode; + return client.EdiCode.IsNull() ? client.Code : client.EdiCode; } /// /// 获取港口代码 @@ -1090,7 +1090,7 @@ namespace DS.WMS.Core.Op.Method } var yardCode = GetYardCode(order.YardId, tenantDb); - var carrierCode = GetCarrierCode(order.YardId, tenantDb); + var carrierCode = GetCarrierCode(order.CarrierId, tenantDb); var tenantName = db.Queryable().Filter(null, true).Where(u => u.Id == long.Parse(user.TenantId)).Select(u => u.Name).First(); var checkRlt = XiahuozhiHelpler.CheckGoodsDescriptionWithInput(order); diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTraceService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTraceService.cs index 33594df0..4aa19048 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTraceService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTraceService.cs @@ -57,7 +57,7 @@ namespace DS.WMS.Core.Op.Method foreach (var item in req) { var yardCode = seaComService.GetClientCode(item.YardId, tenantDb); - var carrierCode = seaComService.GetClientCode(item.CarrierId, tenantDb); + var carrierCode = seaComService.GetCarrierCode(item.CarrierId, tenantDb); if (!string.IsNullOrWhiteSpace(item.CarrierId.ToString())) { var et = await tenantDb.Queryable().Where(x => x.StatusCode == "status_mudigang" && x.BusinessId == Convert.ToInt64(item.BusinessId)).FirstAsync(); diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTxxpService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTxxpService.cs index a16364d8..b8756406 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTxxpService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportTxxpService.cs @@ -53,7 +53,7 @@ namespace DS.WMS.Core.Op.Method //判断船公司是否支持 1790295446942519296 var allowCarrier = db.Queryable() .InnerJoin((a, b) => a.TypeId == b.Id).Where((a, b) => b.Code == "txxp_carrier_list").Select((a, b) => a.Value).ToList(); - var carrCode = seaComService.GetClientCode(order.CarrierId, tenantDb); + var carrCode = seaComService.GetCarrierCode(order.CarrierId, tenantDb); if (!allowCarrier.Contains(carrCode)) return await Task.FromResult(DataResult.Failed("不支持的船公司:"+ carrCode));