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

import com.yn.bftl.common.modules.company.entity.Company;
import com.yn.bftl.common.modules.relation.entity.BusinessRelations;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BusinessRelationsRepository extends JpaRepository<BusinessRelations, Long> {

    List<BusinessRelations> findBySourceCompany(Company sourceCompany);

    BusinessRelations findFirstBySourceCompany(Company sourceCompany);
}
