|
|
@ -319,19 +319,22 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
if (purchasePlatform == Enums.Platform.拳探) |
|
|
|
{ |
|
|
|
var skuPackConfig = request.PackSkuConfigList.FirstOrDefault(s => s.SkuId == firstProductParam.BelongSkuId); |
|
|
|
skuPackConfigList.Add(new |
|
|
|
var skuPackConfig = request.PackSkuConfigList?.FirstOrDefault(s => s.SkuId == firstProductParam.BelongSkuId); |
|
|
|
if (skuPackConfig != null) |
|
|
|
{ |
|
|
|
skuId = firstProductParam.BelongSkuId, |
|
|
|
skuCount = skuPackConfig.PurchaseCount, |
|
|
|
markMessage = string.Empty, |
|
|
|
wareHourses = skuPackConfig.PackSkuSplitConfigList.Select(x => new |
|
|
|
skuPackConfigList.Add(new |
|
|
|
{ |
|
|
|
wareId = x.Store.Id, |
|
|
|
wareName = x.Store.Name, |
|
|
|
count = x.PackCount |
|
|
|
}) |
|
|
|
}); |
|
|
|
skuId = firstProductParam.BelongSkuId, |
|
|
|
skuCount = skuPackConfig.PurchaseCount, |
|
|
|
markMessage = string.Empty, |
|
|
|
wareHourses = skuPackConfig.PackSkuSplitConfigList.Select(x => new |
|
|
|
{ |
|
|
|
wareId = x.Store.Id, |
|
|
|
wareName = x.Store.Name, |
|
|
|
count = x.PackCount |
|
|
|
}) |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -376,7 +379,8 @@ namespace BBWY.Server.Business |
|
|
|
qikuPackSkuConfigRequestList.Add(new |
|
|
|
{ |
|
|
|
orderId = purchaseOrderV2.Id, |
|
|
|
shopId = request.ShopId.ToString(), |
|
|
|
//shopId = request.ShopId.ToString(),
|
|
|
|
shopId = purchaseGroup.Key, //拳探店铺Id(商家Id)
|
|
|
|
originShopName = request.ShopName, |
|
|
|
userName = purchaseAccount.AccountName, |
|
|
|
platform = Enums.Platform.拳探, |
|
|
@ -404,7 +408,7 @@ namespace BBWY.Server.Business |
|
|
|
try |
|
|
|
{ |
|
|
|
var qikuResponse = restApiService.SendRequest("http://qiku.qiyue666.com/", |
|
|
|
"/api/PackPurchaseTask/BatchPublicPurchaseTask", |
|
|
|
"api/PackPurchaseTask/BatchPublicPurchaseTask", |
|
|
|
qikuPackSkuConfigRequest, |
|
|
|
null, |
|
|
|
HttpMethod.Post); |
|
|
|