Browse Source

1

AddValidOverTime
shanji 2 years ago
parent
commit
1c1280a6fd
  1. 25
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

25
BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

@ -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
})
});
}
}
}

Loading…
Cancel
Save