增加商品库存redis缓存 & 库存变动发送rabbit消息
This commit is contained in:
parent
ea94fae9de
commit
777b3051fa
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue