package com.yn.bftl.thirdparty.common.repository;

import com.yn.bftl.common.modules.customer.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 客户Repository
 *
 * @author chendehuihuo
 * @date 2021/11/19 14:38
 **/
@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {

    Customer findFirstByBizUserId(String bizUserId);

    Customer findFirstByPhone(String phone);

}
