解决店铺-商品列表页面库存与Sku库存不对应问题

This commit is contained in:
lifenlong
2021-07-22 10:47:42 +08:00
parent 1c0a420515
commit 66e9a4f4cc
2 changed files with 5 additions and 1 deletions

View File

@@ -184,6 +184,7 @@ public class StockUpdateExecute implements OrderStatusChangeEvent {
skuKeys.add(GoodsSkuService.getStockCacheKey(orderItem.getSkuId()));
GoodsSku goodsSku = new GoodsSku();
goodsSku.setId(orderItem.getSkuId());
goodsSku.setGoodsId(orderItem.getGoodsId());
//如果有促销信息
if (null != orderItem.getPromotionType() && null != orderItem.getPromotionId()) {
//如果促销有库存信息