package org.jeecg.modules.basedata.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.jeecg.modules.basedata.entity.FdCustomer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 客户档案
 * @author： jeecg-boot
 * @date：   2019-05-05
 * @version： V1.0
 */
public interface FdCustomerMapper extends BaseMapper<FdCustomer> {

    //  客户表和联系人表连接查询
    IPage<FdCustomer> findByPage(IPage<FdCustomer> page, @Param("ew") QueryWrapper<FdCustomer> queryWrapper);

    //  添加联系人前查询客户ID
    FdCustomer Customer(@Param("name") String name);
}
