package com.gxwebsoft.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsOrder;
import com.gxwebsoft.cms.param.CmsOrderParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 网站订单Mapper
 *
 * @author 科技小王子
 * @since 2026-01-27 13:03:24
 */
public interface CmsOrderMapper extends BaseMapper<CmsOrder> {

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

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

}
