package com.sunxung.factoring.mapper.financing.contract;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunxung.factoring.entity.financing.contract.SysCustomer;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 企业信息管理表 Mapper 接口
 * </p>
 *
 * @author liutao
 * @since 2022-06-20
 */
@Mapper
public interface SysCustomerMapper extends BaseMapper<SysCustomer> {

    /**
     * 根据名称查询企业电子签信息
     *
     * @param companyName
     * @return
     */
    SysCustomer getByName(String companyName);

    /**
     * 根据个人身份证号获取customer
     *
     * @param socialCreditCode
     * @return
     */
    SysCustomer getCustomerIdBySocialCreditCode(String socialCreditCode);

    /**
     * 根据个人身份证号获取customer
     *
     * @param socialCreditCode
     * @return
     */
    SysCustomer getCustomerPersonBySocialCreditCode(String socialCreditCode);
}
