liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
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
package com.dingzhuo.energy.project.reportForm.mapper;
 
import java.util.List;
 
import com.dingzhuo.energy.project.reportForm.domain.reportSet;
import com.dingzhuo.energy.project.reportForm.domain.reportSetDataModel;
import com.dingzhuo.energy.project.reportForm.domain.reportSetRequestModel;
import org.apache.ibatis.annotations.Param;
 
/**
 * @Description: report_set
 * @Author: jeecg-boot
 * @Date: 2022-04-01
 * @Version: V1.0
 */
public interface reportSetMapper {
    /**
     * 获取上报设置列表
     *
     * @param nodeId  节点id
     * @param indexId 指标id
     * @return
     */
    List<reportSet> listReportSet(String nodeId, String indexId);
    /**
     * 获取节点下所有的上报设置列表
     *
     * @param nodeId  节点id
     * @return
     */
    List<reportSet> listNodeReportSet(String nodeId);
 
    /**
     * 保存上报配置
     *
     * @param listMap
     * @return
     */
    int saveReportSet(List<reportSet> listMap);
 
    /**
     * 删除该点位的上报配置
     *
     * @param nodeId
     * @param indexId
     * @param username
     * @return
     */
    int deleteReportSetByNodeId(String nodeId, String indexId, String username);
 
    /**
     * 获取节点下的点位列表
     * @param nodeId
     * @param indexType
     * @return
     */
    List<reportSetDataModel> listNodeIndex(String nodeId, String indexType);
 
    /**
     * 设置该点位的限值启用状态
     * @param nodeId
     * @param indexId
     * @param enableStatus 要设置的状态
     * @param username
     * @return
     */
    int updateEnableStatus(String nodeId,String indexId, int enableStatus, String username);
 
    /**
     * 根据日期类型获取上报设置
     **/
    List<reportSet> getAllEnableSetByDateType(@Param("dateType") String dateType);
}