package com.gxwebsoft.shop.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseMapper;
import com.gxwebsoft.shop.entity.Order;
import com.gxwebsoft.shop.entity.OrderInfo;
import com.gxwebsoft.shop.param.OrderInfoParam;
import com.gxwebsoft.shop.param.OrderParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 场地Mapper
 *
 * @author 科技小王子
 * @since 2024-05-14 13:20:04
 */
public interface OrderInfoMapper extends MPJBaseMapper<OrderInfo> {

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

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

    @InterceptorIgnore(tenantLine = "true")
    void updateByOutTradeNo(@Param("param") Order order);

}
