package com.yifu.cloud.plus.v1.yifu.archives.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.yifu.cloud.plus.v1.yifu.archives.entity.MSetttleCustomerUser;
import com.yifu.cloud.plus.v1.yifu.archives.vo.MSetttleCustomerUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * b端用户客户关系表
 *
 * @author pwang
 * @date 2020-08-26 12:00:12
 */
@Mapper
public interface MSetttleCustomerUserMapper extends BaseMapper<MSetttleCustomerUser> {
    /**
     * b端用户客户关系表简单分页查询
     *
     * @param mSetttleCustomerUser b端用户客户关系表
     * @return
     */
    IPage<MSetttleCustomerUser> getMSetttleCustomerUserPage(Page<MSetttleCustomerUser> page, @Param("mSetttleCustomerUser") MSetttleCustomerUser mSetttleCustomerUser);


    List<MSetttleCustomerUserVo> getCustomerUser(@Param("userIdList")List<String> userIdList);

    Integer getCustomerCount();

    List<String> getSettlePermissionForB(@Param("userId")String userId);
}
