迁移购物车模块
This commit is contained in:
@@ -3,27 +3,6 @@ package cn.iocoder.mall.order.biz.service;
|
||||
public interface CartService {
|
||||
|
||||
|
||||
// Boolean deleteList(Integer userId, List<Integer> skuIds);
|
||||
//
|
||||
|
||||
//
|
||||
// /**
|
||||
// * 查询用户在购物车中的商品数量
|
||||
// *
|
||||
// * @param userId 用户编号
|
||||
// * @return 商品数量
|
||||
// */
|
||||
// Integer count(Integer userId);
|
||||
//
|
||||
// /**
|
||||
// * 显示买家购物车中的商品列表,并根据 selected 进行过滤。
|
||||
// *
|
||||
// * @param userId 用户编号
|
||||
// * @param selected 是否选中。若为空,则不进行筛选
|
||||
// * @return 购物车中商品列表信息
|
||||
// */
|
||||
// List<CartItemBO> list(Integer userId, @Nullable Boolean selected);
|
||||
//
|
||||
// // ========== 购物车与订单相关的逻辑 ==========
|
||||
//
|
||||
// /**
|
||||
|
||||
@@ -45,17 +45,6 @@ public class CartServiceImpl implements CartService {
|
||||
@Autowired
|
||||
private CartMapper cartMapper;
|
||||
|
||||
@Override
|
||||
public Integer count(Integer userId) {
|
||||
return cartMapper.selectQuantitySumByUserIdAndStatus(userId, CartItemStatusEnum.ENABLE.getValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CartItemBO> list(Integer userId, Boolean selected) {
|
||||
List<CartItemDO> items = cartMapper.selectByUserIdAndStatusAndSelected(userId, CartItemStatusEnum.ENABLE.getValue(), selected);
|
||||
return CartConvert.INSTANCE.convert(items);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CalcOrderPriceBO calcOrderPrice(CalcOrderPriceDTO calcOrderPriceDTO) {
|
||||
// TODO 芋艿,补充一些表单校验。例如说,需要传入用户编号。
|
||||
|
||||
Reference in New Issue
Block a user