ustcyc
2025-01-07 de5d55508afd27fb2b47e6d4d6fd9984525c222c
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package com.zhitan.dataitem.service;
 
 
import com.zhitan.common.enums.TimeType;
import com.zhitan.dataitem.domain.StagseDataEntry;
import com.zhitan.realtimedata.domain.DataItem;
 
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
/**
 * 阶段数据录入接口
 * 
 * @author sys
 * @date 2020-03-25
 */
public interface IDataItemService {
    /**
     * 查询需要手动录入的阶段数据
     * 
     * @param stagseDataEntry
     * @return stagseDataEntry集合
     */
    public List<StagseDataEntry> getSettingIndex(StagseDataEntry stagseDataEntry);
 
    /**
     * 查询修改手动录入的阶段数据
     *
     * @param stagseDataEntry
     * @return stagseDataEntry集合
     */
    public List<StagseDataEntry> getSettingEdit(StagseDataEntry stagseDataEntry);
 
    public List<StagseDataEntry> stagseDataEntry(String nodeId, List<String> indexCodes,
                                                 TimeType timeType,
                                                 Date beginTime,
                                                 Date endTime,
                                                 String calcType);
 
    /**
     * 根据indexId与时间范围查询dataitem合计信息
     *
     * @param beginTime 开始时间
     * @param endTime   截止时间
     * @param timeType  时间类型
     * @param indexIds  点位集合
     * @return
     */
    BigDecimal getDataItemTimeRangeValueByIndexIds(Date beginTime, Date endTime, String timeType, List<String> indexIds);
 
    /**
     * 根据indexId与时间范围查询dataitem信息
     *
     * @param beginTime 开始时间
     * @param endTime   截止时间
     * @param timeType  时间类型
     * @param indexIds  点位集合
     * @return
     */
    List<DataItem> getDataItemTimeRangeInforByIndexIds(Date beginTime, Date endTime, String timeType, List<String> indexIds);
 
    /**
     * 根据indexId与时间编码查询点位值合计
     *
     * @param timeCode 时间编码
     * @param indexIds 点位id集合
     * @return
     */
    List<DataItem> getDataItemInforByIndexIds(String timeCode, List<String> indexIds);
 
    /**
     * 根据indexId与时间编码查询合计值
     *
     * @param timeCode 时间编码
     * @param indexIds 点位id集合
     * @return
     */
    BigDecimal getDataItemValueByIndexIds(String timeCode, List<String> indexIds);
}