package com.jwipc.shopping.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.shopping.entity.ShoppingAfterSales;
import com.jwipc.shopping.entity.ShoppingCart;
import com.jwipc.shopping.model.po.ShoppingAfterSalesPO;
import com.jwipc.shopping.model.query.MyAfterSalesQuery;
import com.jwipc.shopping.model.query.OnlineMallCartQuery;
import com.jwipc.shopping.model.vo.OnlineMallCart;

import java.util.List;

/**
 * <p>
 * 商城购物车商品信息 服务类
 * </p>
 *
 * @author zx
 * @since 2024-03-14
 */
public interface IShoppingCartService extends IService<ShoppingCart> {

    /**
     * 列表数据查询
     *
     * @param toPage 分页条件
     * @param query 查询条件
     * @return 结果
     */
    List<OnlineMallCart> selectDataByQuery(Page<OnlineMallCart> toPage, OnlineMallCartQuery query);


    /**
     * 查询购物订单信息
     *
     * @param query 查询信息
     * @return 结果
     */
    OnlineMallCart selectByQuery(OnlineMallCartQuery query);


    OnlineMallCart findHeadById(Long cartId);

    List<OnlineMallCart> bidFindByPage(Page<OnlineMallCart> dbPage, OnlineMallCartQuery query);

    List<ShoppingAfterSalesPO> selectAsDataByQuery(Page<ShoppingAfterSales> page, MyAfterSalesQuery query);

    ShoppingCart getByOArderCode(String cartId);

    List<OnlineMallCart> selectDataExport(String thirdOrder);

    List<OnlineMallCart> selectDataExport1(OnlineMallCartQuery query);

    List<OnlineMallCart> selectInfoDataByQuery(Page<OnlineMallCart> page, OnlineMallCartQuery query);
}
