package com.jwipc.shopping.mapper;

import com.jwipc.shopping.entity.ShoppingCartInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.shopping.model.po.ShoppingCartInfoPO;
import com.jwipc.shopping.model.vo.CartPurchaseDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商城购物车商品信息 Mapper 接口
 * </p>
 *
 * @author zx
 * @since 2024-03-14
 */
public interface ShoppingCartInfoMapper extends BaseMapper<ShoppingCartInfo> {

    List<ShoppingCartInfoPO> getList(@Param("cartId") Long cartId);

    List<ShoppingCartInfoPO> findByCartId(@Param("cartId") Long cartId);

    List<CartPurchaseDTO> getByCartId(@Param("id") Long id);

    List<ShoppingCartInfoPO> getShoppingCartInfoListPO(@Param("billNo") String billNo, @Param("itemNo") String itemNo);
}
