修复更新商品索引促销时,更新的促销信息不正确问题

This commit is contained in:
paulGao
2022-03-30 17:17:09 +08:00
parent ee4f87d12d
commit c093261369
4 changed files with 19 additions and 46 deletions

View File

@@ -394,7 +394,7 @@ public class GoodsMessageListener implements RocketMQListener<MessageExt> {
}
}
if (goodsIndex.getPromotionMap() == null || goodsIndex.getPromotionMap().isEmpty()) {
if (goodsIndex.getOriginPromotionMap() == null || goodsIndex.getOriginPromotionMap().isEmpty()) {
Map<String, Object> goodsCurrentPromotionMap = promotionService.getGoodsSkuPromotionMap(goodsIndex.getStoreId(), goodsIndex.getId());
goodsIndex.setPromotionMapJson(JSONUtil.toJsonStr(goodsCurrentPromotionMap));
}