!103 修复扣减商品库存问题

Merge pull request !103 from OceansDeep/feature/pg
This commit is contained in:
OceansDeep 2021-12-30 02:32:54 +00:00 committed by Gitee
commit 31c2f555fc

View File

@ -298,7 +298,7 @@ public class StockUpdateExecute implements OrderStatusChangeEvent {
pointsGoodsService.updateById(pointsGoodsVO);
} else {
PromotionGoodsSearchParams searchParams = new PromotionGoodsSearchParams();
searchParams.setPromotionStatus(promotionTypeEnum.name());
searchParams.setPromotionType(promotionTypeEnum.name());
searchParams.setPromotionId(orderItem.getPromotionId());
searchParams.setSkuId(orderItem.getSkuId());
PromotionGoods pGoods = promotionGoodsService.getPromotionsGoods(searchParams);