package com.gxwebsoft.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.shop.entity.PaymentTrade;
import com.gxwebsoft.shop.param.PaymentTradeParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 第三方支付交易记录表Mapper
 *
 * @author 科技小王子
 * @since 2022-12-09 13:59:38
 */
public interface PaymentTradeMapper extends BaseMapper<PaymentTrade> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<PaymentTrade>
     */
    List<PaymentTrade> selectPageRel(@Param("page") IPage<PaymentTrade> page,
                             @Param("param") PaymentTradeParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<PaymentTrade> selectListRel(@Param("param") PaymentTradeParam param);

}
