增加商品库存redis缓存 & 库存变动发送rabbit消息
This commit is contained in:
@@ -104,9 +104,9 @@ public class UProductServiceImpl extends ServiceImpl<ProductMapper, Product> imp
|
|||||||
List<ShopProductVo> productList = new ArrayList<>();
|
List<ShopProductVo> productList = new ArrayList<>();
|
||||||
for (Long productId : productIdList) {
|
for (Long productId : productIdList) {
|
||||||
ShopProductVo product = productKv.get(productId);
|
ShopProductVo product = productKv.get(productId);
|
||||||
ShopProductVo prod = BeanUtil.copyProperties(product, ShopProductVo.class);
|
|
||||||
prod.setShopId(shopId);
|
|
||||||
if (product != null) {
|
if (product != null) {
|
||||||
|
ShopProductVo prod = BeanUtil.copyProperties(product, ShopProductVo.class);
|
||||||
|
prod.setShopId(shopId);
|
||||||
productList.add(prod);
|
productList.add(prod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user