fix: 优化编辑商品,没有清除商品缓存问题

This commit is contained in:
misworga831 2023-04-07 16:47:32 +08:00
parent efe9a1a6e4
commit c1e45242a7

View File

@ -176,8 +176,8 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
//如果商品状态值不对则es索引移除
if (goods.getAuthFlag().equals(GoodsAuthEnum.PASS.name()) && goods.getMarketEnable().equals(GoodsStatusEnum.UPPER.name())) {
goodsIndexService.deleteIndexById(sku.getId());
this.clearCache(sku.getId());
}
this.clearCache(sku.getId());
}
}
if (!skuList.isEmpty()) {