提箱小票

optimize
wet 1 year ago
parent 878da4a92e
commit 42154002da

@ -9275,7 +9275,9 @@ HLCUTA12307DPXJ3 以这票为例 6个柜
_logger.LogInformation("提箱小票CMA:" + ytAcc.ToJsonString());
var order = _rep.FirstOrDefault(x => x.Id == Id);
//条件判断 目前只支持CMA 的数据
if (order.CARRIERID != "CMA")
var CARRIERID= _cache.GetAllMappingCarrier().Result.Where(x => order.CARRIERID == x.Code).Select(x => x.MapCode).FirstOrDefault();
if (CARRIERID != "CMA")
{
throw Oops.Bah("船公司目前只支持CMA");
}
@ -9285,7 +9287,7 @@ HLCUTA12307DPXJ3 以这票为例 6个柜
}
if (string.IsNullOrEmpty(order.MBLNO))
{
throw Oops.Bah("船名不能为空");
throw Oops.Bah("提单号不能为空");
}
var json = new
{

Loading…
Cancel
Save