diff --git a/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs b/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs index bfae50d3..a87021ca 100644 --- a/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs +++ b/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs @@ -734,7 +734,7 @@ namespace BBWY.Server.Business try { - qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, "任务列表无后续任务,为避免空档请及时设置后续任务", "NOTASK", "PZJS API", string.Empty); + qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, "任务列表无后续任务,为避免空档请及时设置后续任务", "NOTASK", "PJZS API", string.Empty); } catch { } } @@ -1101,7 +1101,7 @@ namespace BBWY.Server.Business if (httpResult.StatusCode != System.Net.HttpStatusCode.OK) { //dingDingBusiness.SendDingDingBotMessage(shop.PJZSDingDingKey, shop.PJZSDingDingWebHook, $"任务[{promotionTask.ActivityName}]删除任务失败,{httpResult.Content}"); - qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PZJS", shop.ShopName, $"任务[{promotionTask.ActivityName}]删除任务失败,{httpResult.Content}", "PJZS API", string.Empty); + qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, $"任务[{promotionTask.ActivityName}]删除任务失败,{httpResult.Content}", "PJZS API", string.Empty); } else { @@ -1109,7 +1109,7 @@ namespace BBWY.Server.Business if (!res.Success) { //dingDingBusiness.SendDingDingBotMessage(shop.PJZSDingDingKey, shop.PJZSDingDingWebHook, $"任务[{promotionTask.ActivityName}]删除任务失败,{res.Msg}"); - qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PZJS", shop.ShopName, $"任务[{promotionTask.ActivityName}]删除任务失败,{res.Msg}", "PJZS API", string.Empty); + qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, $"任务[{promotionTask.ActivityName}]删除任务失败,{res.Msg}", "PJZS API", string.Empty); } } @@ -1200,7 +1200,7 @@ namespace BBWY.Server.Business try { //dingDingBusiness.SendDingDingBotMessage(shop.PJZSDingDingKey, shop.PJZSDingDingWebHook, $"任务[{jobDoneTask.ActivityName}]已结束"); - qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PZJS", shop.ShopName, $"任务[{jobDoneTask.ActivityName}]已结束", "PJZS API", string.Empty); + qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, $"任务[{jobDoneTask.ActivityName}]已结束", "PJZS API", string.Empty); } catch { } } @@ -1228,7 +1228,7 @@ namespace BBWY.Server.Business { //dingDingBusiness.SendDingDingBotMessage(shop.PJZSDingDingKey, shop.PJZSDingDingWebHook, $"评价助手\n店铺:{shop.ShopName}\n任务全部执行完成,请及时设置后续任务!!"); - qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PZJS", shop.ShopName, "任务全部执行完成,请及时设置后续任务", "NOTASK", "PJZS API", string.Empty); + qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, "任务全部执行完成,请及时设置后续任务", "NOTASK", "PJZS API", string.Empty); } catch { } } diff --git a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs index f7473461..43ed22dc 100644 --- a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs +++ b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs @@ -616,6 +616,7 @@ namespace BBWY.Server.Business foreach (var purchaseGroup in request.CargoParamGroupList) { var belongSkuGroups = purchaseGroup.CargoParamList.GroupBy(p => p.BelongSkuId); + var belongSkuIds = belongSkuGroups.Select(x => x.Key).ToList(); var belongSkuBasicInfoList = productBusiness.GetProductSkuList(new SearchProductSkuRequest() { @@ -623,7 +624,7 @@ namespace BBWY.Server.Business AppSecret = shop.AppSecret, AppToken = shop.AppToken, Platform = (Enums.Platform)shop.PlatformId, - Sku = string.Join(",", belongSkuGroups.Select(x => x.Key)), + Sku = string.Join(",", belongSkuIds), }); try @@ -779,6 +780,7 @@ namespace BBWY.Server.Business //fsql.Insert(purchaseOrderSku).ExecuteAffrows(); fsql.Insert(insertPurchaseOrderSkuList).ExecuteAffrows(); fsql.Update(updatePurchaseTimeSchemeIdList).Set(p => p.LastPurchaseTime, DateTime.Now).ExecuteAffrows(); + fsql.Update(belongSkuIds).Set(ps => ps.Purchaser, 1).ExecuteAffrows(); //设置SKU为供应链 }); successSkuIdList.AddRange(belongSkuGroups.Select(g => g.Key)); diff --git a/BBWY.Server.Model/Db/Product/ProductSku.cs b/BBWY.Server.Model/Db/Product/ProductSku.cs index b5cd26da..34580af0 100644 --- a/BBWY.Server.Model/Db/Product/ProductSku.cs +++ b/BBWY.Server.Model/Db/Product/ProductSku.cs @@ -52,6 +52,11 @@ namespace BBWY.Server.Model.Db public int? CategoryId { get; set; } public string CategoryName { get; set; } + + /// + /// 1:业务团队 2:供应链 + /// + public int? Purchaser { get; set; } } }