package cn.quantgroup.xyqb.risk.repository;

import cn.quantgroup.xyqb.risk.entity.WhiteList;
import cn.quantgroup.xyqb.entity.enums.KeyType;
import org.springframework.data.jpa.repository.JpaRepository;

public interface WhiteListRepository extends JpaRepository<WhiteList, Long> {


    Long countByKeyEqualsAndTypeEqualsAndEnableIsTrue(String key, KeyType type);
}
