|
|
|
@ -473,12 +473,12 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
{
|
|
|
|
|
if (Id == 0)
|
|
|
|
|
return "";
|
|
|
|
|
var client = tenantDb.Queryable<InfoClient>().First(v => v.Id == Id && v.Status == StatusEnum.Enable.ToEnumInt());
|
|
|
|
|
var client = tenantDb.Queryable<CodeCarrier>().First(v => v.Id == Id);
|
|
|
|
|
if (client.IsNull())
|
|
|
|
|
{
|
|
|
|
|
throw new Exception("请检查船公司信息");
|
|
|
|
|
}
|
|
|
|
|
return client.EDICode.IsNull() ? client.CodeName : client.EDICode;
|
|
|
|
|
return client.EdiCode.IsNull() ? client.Code : client.EdiCode;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取港口代码
|
|
|
|
@ -1090,7 +1090,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var yardCode = GetYardCode(order.YardId, tenantDb);
|
|
|
|
|
var carrierCode = GetCarrierCode(order.YardId, tenantDb);
|
|
|
|
|
var carrierCode = GetCarrierCode(order.CarrierId, tenantDb);
|
|
|
|
|
var tenantName = db.Queryable<SysTenant>().Filter(null, true).Where(u => u.Id == long.Parse(user.TenantId)).Select(u => u.Name).First();
|
|
|
|
|
var checkRlt = XiahuozhiHelpler.CheckGoodsDescriptionWithInput(order);
|
|
|
|
|
|
|
|
|
|