package com.ruoyi.web.sales.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.web.sales.domain.RelCustomerMarket;
import org.apache.ibatis.annotations.Param;

public interface RelCustomerMarketMapper extends BaseMapper<RelCustomerMarket> {

    /**
     * 分页查询（单次 SQL JOIN，适配大数据量表）
     */
    IPage<RelCustomerMarket> selectCustomerMarketPage(Page<RelCustomerMarket> page,
                                                      @Param("orgId") String orgId,
                                                      @Param("lineNum") String lineNum,
                                                      @Param("marketNum") String marketNum);
}
