package org.dromara.payment.channel.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.payment.channel.domain.BusChannel;
import org.dromara.payment.channel.domain.BusChannelSalesman;
import org.dromara.payment.channel.domain.bo.BusChannelSalesmanBo;
import org.dromara.payment.channel.domain.vo.BusChannelSalesmanVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;
import java.util.Map;

/**
 * 代理商业务员Mapper接口
 *
 * @author LionLi
 * @date 2024-04-10
 */
public interface BusChannelSalesmanMapper extends BaseMapperPlus<BusChannelSalesman, BusChannelSalesmanVo> {


    @DataPermission({
        @DataColumn(key="colomField",value="channel_no")
    })
    public List<Map> selectDataTest();



    @DataPermission({
            @DataColumn(key="colomField",value="t.channel_no")
    })
    public Page<BusChannelSalesmanVo> selectSaleMans(@Param("page")  IPage page, @Param(Constants.WRAPPER)  Wrapper wrapper);



    @DataPermission({
            @DataColumn(key="colomField",value="channel_no")
    })
    public List<BusChannelSalesmanVo> selectSaleMansList();
}
