增加商品库存redis缓存 & 库存变动发送rabbit消息
This commit is contained in:
@@ -412,7 +412,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|||||||
// 清除旧分类缓存&新分类缓存
|
// 清除旧分类缓存&新分类缓存
|
||||||
clearProductCache(old.getCategoryId(), entity.getCategoryId());
|
clearProductCache(old.getCategoryId(), entity.getCategoryId());
|
||||||
}else {
|
}else {
|
||||||
clearProductCache(entity.getCategoryId());
|
clearProductCache(old.getCategoryId());
|
||||||
}
|
}
|
||||||
List<ProdSkuDTO> skuList = dto.getSkuList();
|
List<ProdSkuDTO> skuList = dto.getSkuList();
|
||||||
// 商品SKU-ID列表
|
// 商品SKU-ID列表
|
||||||
|
|||||||
Reference in New Issue
Block a user