增加商品库存redis缓存 & 库存变动发送rabbit消息

This commit is contained in:
Tankaikai 2025-04-16 17:42:07 +08:00
parent 8ab758fac9
commit 2688efc638
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
// 清除旧分类缓存&新分类缓存
clearProductCache(old.getCategoryId(), entity.getCategoryId());
}else {
clearProductCache(entity.getCategoryId());
clearProductCache(old.getCategoryId());
}
List<ProdSkuDTO> skuList = dto.getSkuList();
// 商品SKU-ID列表