package com.cpxt.biz.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cpxt.biz.domain.BizCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 客户Mapper接口
 * 
 * @author YIN
 * @date 2024-12-16
 */
@Mapper
public interface BizCustomerMapper extends BaseMapper<BizCustomer>
{
    @Select("select * from biz_customer where linkphone = #{username}")
    BizCustomer selectByLinkPhone(String username);

    @Select("select * from biz_customer where name = #{customerName} and status = 1")
    BizCustomer selectByName(String customerName);

    @Select("select name from biz_customer where status = 1")
    List<String> getCustomerName();
}

