购物车-修复商品被删除,获取购物车列表出错
This commit is contained in:
@@ -53,10 +53,7 @@ public class OrderCartServiceImpl extends ServiceImpl<OrderCartDao, OrderCartEnt
|
||||
|
||||
ShopProduct productEntity = shopProductService.getById(productId);
|
||||
System.out.println("productEntity=============================="+productEntity);
|
||||
// if (productEntity == null) {
|
||||
// return null;
|
||||
// } else {
|
||||
// shopProductService.getBaseMapper().selectList()
|
||||
if (productEntity != null) {
|
||||
ShopCartVo shopCartVo = new ShopCartVo();
|
||||
|
||||
BeanUtils.copyProperties(orderCartEntity, shopCartVo);
|
||||
@@ -83,10 +80,7 @@ public class OrderCartServiceImpl extends ServiceImpl<OrderCartDao, OrderCartEnt
|
||||
shopCartVo.setActivityPrice(price);
|
||||
cartList.add(shopCartVo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// }
|
||||
}
|
||||
return cartList;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user