|
|
|
@ -5347,7 +5347,31 @@ namespace Myshipping.Application
|
|
|
|
|
throw Oops.Bah(rtn.Value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return rtn.Value;
|
|
|
|
|
//场站引入的数据,转换为订舱箱型,且带上箱型代码
|
|
|
|
|
var ctnList = await _cache.GetAllCodeCtn();
|
|
|
|
|
var mapCtn = await _cache.GetAllMappingCtn();
|
|
|
|
|
|
|
|
|
|
var jData = JArray.Parse(rtn.Value);
|
|
|
|
|
foreach (JObject item in jData)
|
|
|
|
|
{
|
|
|
|
|
var ctnall = item.GetStringValue("CTNALL");
|
|
|
|
|
var findMap = mapCtn.FirstOrDefault(x => x.Module == "YardData" && x.MapCode == ctnall);
|
|
|
|
|
var findCtn = ctnList.FirstOrDefault(x => x.Name == ctnall);
|
|
|
|
|
if (findMap != null)
|
|
|
|
|
{
|
|
|
|
|
item.Add("CtnCode", findMap.Code);
|
|
|
|
|
}
|
|
|
|
|
else if (findCtn != null)
|
|
|
|
|
{
|
|
|
|
|
item.Add("CtnCode", findCtn.Code);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"未找到箱型{ctnall}的场站引入配置");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return jData.ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|