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

This commit is contained in:
Tankaikai 2025-04-16 17:25:38 +08:00
parent ea94fae9de
commit 777b3051fa
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ public class UProductServiceImpl extends ServiceImpl<ProductMapper, Product> imp
List<ShopProductVo> productList = new ArrayList<>();
for (Long productId : productIdList) {
ShopProductVo product = productKv.get(productId);
if (product != null) {
ShopProductVo prod = BeanUtil.copyProperties(product, ShopProductVo.class);
prod.setShopId(shopId);
if (product != null) {
productList.add(prod);
}
}