package cn.quantgroup.xyqb.repository;


import cn.quantgroup.xyqb.entity.OauthClientDetailsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by hechao on 2020/2/17.
 */
@Repository
public interface IOauthClientDetailsRepository extends JpaRepository<OauthClientDetailsEntity, Long> {
    OauthClientDetailsEntity findFirstByClientId(Integer clientID);

    OauthClientDetailsEntity findFirstByInstitutionIdAndProductId(String institutionId, String productId);
}