diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index d7f5a52b..8d93c3f9 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -3986,7 +3986,7 @@ namespace Myshipping.Application
if (baseServiceInfo == null)
throw Oops.Bah($"运输条款{order.SERVICE}的基础代码未找到");
- //付费方式映射
+ //运输条款映射
var ediServiceList = _cache.GetAllMappingService().GetAwaiter().GetResult()
.Where(t => t.Module.Equals(CONST_MAPPING_MODULE, StringComparison.OrdinalIgnoreCase)
&& !string.IsNullOrWhiteSpace(t.CarrierCode) && t.CarrierCode.Equals(order.CARRIERID, StringComparison.OrdinalIgnoreCase)
@@ -4008,10 +4008,10 @@ namespace Myshipping.Application
var baseIssueTypeInfo = baseIssueTypeList.FirstOrDefault(t =>
t.EnName.Equals(order.ISSUETYPE, StringComparison.OrdinalIgnoreCase));
- if (baseServiceInfo == null)
+ if (baseIssueTypeInfo == null)
throw Oops.Bah($"签单方式{order.ISSUETYPE}的基础代码未找到");
- //付费方式映射
+ //签单方式映射
var ediIssueTypeList = _cache.GetAllMappingIssueType().GetAwaiter().GetResult()
.Where(t => t.Module.Equals(CONST_MAPPING_MODULE, StringComparison.OrdinalIgnoreCase)
).ToList();
@@ -4020,18 +4020,18 @@ namespace Myshipping.Application
{
var currIssueTypeInfo = ediIssueTypeList.FirstOrDefault(t => !string.IsNullOrWhiteSpace(t.CarrierCode)
&& t.CarrierCode.Equals(order.CARRIERID, StringComparison.OrdinalIgnoreCase)
- && t.Code.Equals(baseServiceInfo.Code, StringComparison.OrdinalIgnoreCase));
+ && t.Code.Equals(baseIssueTypeInfo.Code, StringComparison.OrdinalIgnoreCase));
if (currIssueTypeInfo == null)
{
//如果没有对应的船司记录,则取默认的第一个代码对应的记录
- currIssueTypeInfo = ediIssueTypeList.FirstOrDefault(t => t.Code.Equals(baseServiceInfo.Code, StringComparison.OrdinalIgnoreCase));
+ currIssueTypeInfo = ediIssueTypeList.FirstOrDefault(t => t.Code.Equals(baseIssueTypeInfo.Code, StringComparison.OrdinalIgnoreCase));
}
if (currIssueTypeInfo == null)
throw Oops.Bah($"签单方式{order.ISSUETYPE}的EDI代码未找到");
- primaryModel.ISSUETYPE = currIssueTypeInfo.MapCode?.Trim();
+ primaryModel.ISSUETYPE = currIssueTypeInfo.MapCode?.Trim().ToUpper();
}
primaryModel.CARRIEREDICODE = ediSOSICfg.MapCode;
diff --git a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs
index cec9e7ce..18b83180 100644
--- a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs
+++ b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs
@@ -1751,7 +1751,7 @@ namespace Myshipping.Application
try
{
var ftpSpiderUrl = _cache.GetAllDictData().GetAwaiter().GetResult()
- .FirstOrDefault(x => x.TypeCode == "url_set" && x.Code == "booking_truck_sync_mq_server")?.Value;
+ .FirstOrDefault(x => x.TypeCode == "url_set" && x.Code == "BookingOrderMQUri")?.Value;
if (ftpSpiderUrl == null)
throw Oops.Bah("字典未配置 url_set->booking_edi_ftp_server 请联系管理员");
diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml
index a2a85ac2..1ea74936 100644
--- a/Myshipping.Core/Myshipping.Core.xml
+++ b/Myshipping.Core/Myshipping.Core.xml
@@ -8297,6 +8297,16 @@
排序
+
+
+ 船司代码
+
+
+
+
+ 映射代码
+
+
航线
diff --git a/Myshipping.Core/Service/CommonDB/Dto/CodeIssueTypeDto.cs b/Myshipping.Core/Service/CommonDB/Dto/CodeIssueTypeDto.cs
index 056615ba..ca094a5a 100644
--- a/Myshipping.Core/Service/CommonDB/Dto/CodeIssueTypeDto.cs
+++ b/Myshipping.Core/Service/CommonDB/Dto/CodeIssueTypeDto.cs
@@ -71,5 +71,15 @@ namespace Myshipping.Core.Service.CommonDB.Dto
/// 排序
///
public int Sort { get; set; }
+
+ ///
+ /// 船司代码
+ ///
+ public string CarrierCode { get; set; }
+
+ ///
+ /// 映射代码
+ ///
+ public string MapCode { get; set; }
}
}