package com.caimei.www.mapper;

import com.caimei.www.pojo.order.ActivityPrice;
import com.caimei.www.pojo.order.CartItem;
import com.caimei.www.pojo.order.CartSupplier;
import com.caimei.www.pojo.order.LadderPrice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description
 *
 * @author : Charles
 * @date : 2020/7/23
 */
@Mapper
public interface ShoppingDao {
    /**
     * 顶部购物车数据
     */
    List<CartItem> getHeadCarts(Integer userId);

    /**
     * 购物车列表-供应商
     * @param userId
     * @return
     */
    List<CartSupplier> getCartSuppliers(Integer userId);

    /**
     * 根据供应商ID查询购物车列表
     * @param supplierId
     * @return
     */
    List<CartItem> getShoppingCartBySupplierId(@Param("supplierId") Integer supplierId, @Param("userId") Integer userId);

}
