baoshiwei
2025-04-23 c2375c2bcc0bf9e6a3af7f9776d5a0eb14370b40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.zhitan.engine.repository;
 
import com.zhitan.engine.entity.IndexStorage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
/**
 * 指标存储配置数据访问层
 */
@Repository
public interface IndexStorageRepository extends JpaRepository<IndexStorage, String> {
 
    /**
     * 根据时间类型查询配置
     *
     * @param timeType 时间类型
     * @return 配置列表
     */
    List<IndexStorage> findByTimeType(String timeType);
 
    /**
     * 根据时间类型和是否计算尖峰平谷查询配置
     *
     * @param timeType 时间类型
     * @param isPvCalc 是否计算尖峰平谷(0:否,1:是)
     * @return 配置列表
     */
    List<IndexStorage> findByTimeTypeAndIsPvCalc(String timeType, Integer isPvCalc);
 
    /**
     * 根据索引ID查询配置
     *
     * @param indexId 索引ID
     * @return 配置列表
     */
    List<IndexStorage> findByIndexId(String indexId);
}