Browse Source

入仓采购单钉钉提示增加店铺

yijia
shanji 2 years ago
parent
commit
39a911b71c
  1. 9
      BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs

9
BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs

@ -35,6 +35,7 @@ namespace BBWYB.Server.Business
private Lazy<RestApiService> restApiServiceLazy;
private Lazy<JDBusiness> jdBusinessLazy;
private Lazy<OP_PlatformClientFactory> opPlatformClientFactoryLazy;
private Lazy<VenderBusiness> venderBusinessLazy;
private PP_PlatformClientFactory ppPlatformClientFactory => pplatformClientFactoryLazy.Value;
private TaskSchedulerManager taskSchedulerManager => taskSchedulerManagerLazy.Value;
@ -45,6 +46,7 @@ namespace BBWYB.Server.Business
private QiKuManager qiKuManager => qiKuManagerLazy.Value;
private RestApiService restApiService => restApiServiceLazy.Value;
private OP_PlatformClientFactory opPlatformClientFactory => opPlatformClientFactoryLazy.Value;
private VenderBusiness venderBusiness => venderBusinessLazy.Value;
private JDBusiness jdBusiness => jdBusinessLazy.Value;
@ -65,7 +67,7 @@ namespace BBWYB.Server.Business
restApiServiceLazy = new Lazy<RestApiService>(() => serviceProvider.GetService<RestApiService>());
jdBusinessLazy = new Lazy<JDBusiness>(() => serviceProvider.GetService<JDBusiness>());
opPlatformClientFactoryLazy = new Lazy<OP_PlatformClientFactory>(() => serviceProvider.GetService<OP_PlatformClientFactory>());
venderBusinessLazy = new Lazy<VenderBusiness>(() => serviceProvider.GetService<VenderBusiness>());
cantPurchaseOrderStateList = new List<Enums.OrderState>()
{
Enums.OrderState.,
@ -2588,12 +2590,13 @@ namespace BBWYB.Server.Business
if (isNotifyDingDingWhenInOrderFail && inStoreResponse != null)
{
#region 入库单查询有误,通知钉钉
var shop = venderBusiness.GetShopList(order.ShopId).FirstOrDefault();
var dingdingMsg = new StringBuilder();
if (inStoreResponse.Data == null || inStoreResponse.Data.Count() == 0)
{
foreach (var opi in currentPurchaseOrderList)
{
dingdingMsg.AppendLine($"店铺名称:{shop?.ShopName}");
dingdingMsg.AppendLine($"拳探订单号:{order.OrderSn}");
dingdingMsg.AppendLine($"采购平台:{opi.PurchasePlatform}");
dingdingMsg.AppendLine($"采购单号:{opi.PurchaseOrderId}");
@ -2605,6 +2608,7 @@ namespace BBWYB.Server.Business
{
foreach (var opi in currentPurchaseOrderList)
{
dingdingMsg.AppendLine($"店铺名称:{shop?.ShopName}");
dingdingMsg.AppendLine($"拳探订单号:{order.OrderSn}");
dingdingMsg.AppendLine($"采购平台:{opi.PurchasePlatform}");
dingdingMsg.AppendLine($"采购单号:{opi.PurchaseOrderId}");
@ -2637,6 +2641,7 @@ namespace BBWYB.Server.Business
break;
}
dingdingMsg.AppendLine($"店铺名称:{shop?.ShopName}");
dingdingMsg.AppendLine($"拳探订单号:{order.OrderSn}");
dingdingMsg.AppendLine($"采购平台:{opi.PurchasePlatform}");
dingdingMsg.AppendLine($"采购单号:{opi.PurchaseOrderId}");

Loading…
Cancel
Save