diff --git a/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs b/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs index f893d0fc..6cc50c6b 100644 --- a/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs +++ b/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs @@ -432,6 +432,7 @@ namespace BBWY.Server.Business string wayBillNoResponseInfo = string.Empty; string logisticsCompanyListInfo = string.Empty; string logisticsCompanyId = string.Empty; + string orderId = string.Empty; try { #region 查询代发信息 @@ -439,6 +440,7 @@ namespace BBWY.Server.Business var orderDropshipping = fsql.Select().Where(o => o.PurchaseOrderId == purchaseOrderId).ToOne(); if (orderDropshipping == null) throw new Exception("未查询到代发信息"); + orderId = orderDropshipping.OrderId; #endregion #region 查询采购账号 @@ -501,10 +503,12 @@ namespace BBWY.Server.Business LogisticsId = logisticsCompanyId //物流公司Id }); #endregion + + logger.Info($"DeliveryCallback 回调平台{callbackPlatform},订单号{orderId},采购单号{purchaseOrderId},执行进度[{currentProgress}],采购单物流信息:{wayBillNoResponseInfo},店铺平台物流公司列表:{logisticsCompanyListInfo},翻译后的物流公司Id:{logisticsCompanyId}"); } catch (Exception ex) { - logger.Error(ex, $"DeliveryCallback 回调平台{callbackPlatform},采购单号{purchaseOrderId},执行进度[{currentProgress}],采购单物流信息:{wayBillNoResponseInfo},店铺平台物流公司列表:{logisticsCompanyListInfo},翻译后的物流公司Id:{logisticsCompanyId}"); + logger.Error(ex, $"DeliveryCallback 回调平台{callbackPlatform},订单号{orderId},采购单号{purchaseOrderId},执行进度[{currentProgress}],采购单物流信息:{wayBillNoResponseInfo},店铺平台物流公司列表:{logisticsCompanyListInfo},翻译后的物流公司Id:{logisticsCompanyId}"); } }