VGM直发根据船司配置

optimize
wanghaomei 1 year ago
parent e7f1c91962
commit ebb1ca99df

@ -3662,8 +3662,9 @@ namespace Myshipping.Application
throw Oops.Bah(BookingErrorCode.BOOK127);
}
var config = _cache.GetAllTenantParam().Result.FirstOrDefault(x => x.TenantId == UserManager.TENANT_ID && x.ParaCode == "VGM_SEND_CHANNEL");
if (config != null && config.ItemCode == "USE_MYSHIPPING") //使用大简云发送vgm
var config = _cache.GetAllTenantParam().Result.FirstOrDefault(x => x.TenantId == UserManager.TENANT_ID && x.ParaCode == "VgmDirectSendCarrierId");
var arrCarr = config.ItemCode.Split(",", StringSplitOptions.RemoveEmptyEntries);
if (!arrCarr.Contains(order.CARRIERID)) //使用大简云发送vgm
{
//ETD不能为空
if (!order.ETD.HasValue)

Loading…
Cancel
Save