优化商品索引的促销信息生成。优化批量生成分词

This commit is contained in:
paulGao
2022-07-18 19:06:17 +08:00
parent 7cbbc57514
commit 950274f6be
10 changed files with 136 additions and 56 deletions

View File

@@ -275,8 +275,6 @@ public class GoodsMessageListener implements RocketMQListener<MessageExt> {
this.goodsIndexService.deleteEsGoodsPromotionByPromotionKey(skuIds, esPromotionKey);
this.goodsIndexService.updateEsGoodsIndexPromotions(skuIds, promotions, esPromotionKey);
} else if (PromotionsScopeTypeEnum.ALL.name().equals(promotions.getScopeType())) {
// 更新商品索引促销信息(删除原索引中相关的促销信息,更新索引中促销信息)
this.goodsIndexService.deleteEsGoodsPromotionByPromotionKey(esPromotionKey);
this.goodsIndexService.updateEsGoodsIndexAllByList(promotions, esPromotionKey);
}
} catch (Exception e) {