活动商品在商品下架或者删除时数据未能同步处理的问题

This commit is contained in:
Chopper
2022-09-13 15:17:53 +08:00
parent 3011645c44
commit c87081f673
6 changed files with 26 additions and 6 deletions

View File

@@ -211,6 +211,10 @@ public class GoodsMessageListener implements RocketMQListener<MessageExt> {
log.error("删除商品索引事件执行异常,商品信息: " + new String(messageExt.getBody()), e);
}
break;
case DOWN:
String goodsIdsJsonStr = new String(messageExt.getBody());
promotionService.removeByGoodsIds(goodsIdsJsonStr);
break;
//规格删除
case SKU_DELETE:
String message = new String(messageExt.getBody());