package com.xhpc.evcs.jpa;

import com.xhpc.evcs.domain.XhpcRate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.QueryByExampleExecutor;

import java.util.List;

/**
 * Dao of xhpc_rate
 *
 * @author WH
 * @date 2021/11/9 10:16
 * @since version-1.0
 */
public interface XhpcRateRepository extends JpaRepository<XhpcRate, Long>,
        QueryByExampleExecutor<XhpcRate>, JpaSpecificationExecutor<XhpcRate> {

    /**
     * 通过费率模型id获取所有费率
     *
     * @param rateModelId
     * @return 所有费率
     */
    List<XhpcRate> findByRateModelId(Long rateModelId);

}
