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