wet 2 years ago
commit 1a879e811a

@ -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;

@ -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 请联系管理员");

@ -8297,6 +8297,16 @@
排序
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingIssueTypeDto.CarrierCode">
<summary>
船司代码
</summary>
</member>
<member name="P:Myshipping.Core.Service.CommonDB.Dto.MappingIssueTypeDto.MapCode">
<summary>
映射代码
</summary>
</member>
<member name="T:Myshipping.Core.Service.CommonDB.Dto.CodeLaneDto">
<summary>
航线

@ -71,5 +71,15 @@ namespace Myshipping.Core.Service.CommonDB.Dto
/// 排序
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 船司代码
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 映射代码
/// </summary>
public string MapCode { get; set; }
}
}

Loading…
Cancel
Save