jianghaiqing 1 week ago
commit 554d4cdcbf

@ -202,7 +202,7 @@ namespace Myshipping.Application.EDI
_ => throw Oops.Oh("暂不支持的货物类型") _ => throw Oops.Oh("暂不支持的货物类型")
}, },
boxSize = mapCtn.MapCode, boxSize = mapCtn.MapCode,
quantity = ctn.KGS.Value, quantity = ctn.CTNNUM.Value,
}; };
postModel.boxInfos.Add(apiBox); postModel.boxInfos.Add(apiBox);
} }

@ -5506,8 +5506,7 @@ namespace Myshipping.Application
ChuanMing = order.VESSEL, ChuanMing = order.VESSEL,
HangCi = order.VOYNO, HangCi = order.VOYNO,
BeiZhu = order.CZRemark, BeiZhu = order.CZRemark,
ZhuangHuoGang = order.PORTLOAD,
ZhuangHuoGangDaiMa = order.PORTLOADID,
YARD = mappingYard, YARD = mappingYard,
ORDERNO = order.CUSTNO, ORDERNO = order.CUSTNO,
VGMCLOSETIME = order.CLOSEVGMDATE, VGMCLOSETIME = order.CLOSEVGMDATE,
@ -5527,6 +5526,22 @@ namespace Myshipping.Application
SendFlag = true SendFlag = true
}).ToList() }).ToList()
}; };
string[] supportPortPassageArr = null;
var vgmSupportPortPassages = sysconfig.FirstOrDefault(x => x.GroupCode == "DJY_CONST" && x.Code == "VgmSupportPortPassages");
if (!string.IsNullOrEmpty(vgmSupportPortPassages?.Value))
{
supportPortPassageArr = vgmSupportPortPassages.Value.Split(',');
}
if (supportPortPassageArr != null && supportPortPassageArr.Length > 0 && supportPortPassageArr.Contains(order.PORTLOADID))
{
sendObj.ZhuangHuoGang = order.PORTLOAD;
sendObj.ZhuangHuoGangDaiMa = order.PORTLOADID;
}
else
{
sendObj.ZhuangHuoGang = "OTHER";
sendObj.ZhuangHuoGangDaiMa = "OTHER";
}
_logger.LogInformation($"调用VGM平台的发送接口{urlConfig.Value},参数:{JsonConvert.SerializeObject(sendObj)}"); _logger.LogInformation($"调用VGM平台的发送接口{urlConfig.Value},参数:{JsonConvert.SerializeObject(sendObj)}");

Loading…
Cancel
Save