package com.xhpc.evcs.jpa;

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

import java.util.List;

@Repository
public interface StatisticTimeIntervalRepository extends JpaRepository<XhpcStatisticsTimeInterval, String>,
        QueryByExampleExecutor<XhpcStatisticsTimeInterval>, JpaSpecificationExecutor<XhpcStatisticsTimeInterval> {

    List<XhpcStatisticsTimeInterval> findByHistoryOrderId(Long historyOrderId);

}
