liurunyu
2025-02-10 a2d5f396dcee51917d333e42a977a544091e5389
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
package com.dy.pipIrrGlobal.daoLargeScreen;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.voSpecial.VoTopXClient;
import com.dy.pipIrrGlobal.voSpecial.VoTopXIntake;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
/**
 * @Author: liurunyu
 * @Date: 2025/2/6 10:46
 * @Description
 */
@Mapper
public interface Ls4StatisticsMapper extends BaseMapper<Object> {
 
    /**
     * 涉及行政区划总数
     * @return
     */
    Integer totalCountOfDistrict(@Param("level")Integer level) ;
    /**
     * 片区总数
     * @return
     */
    Integer totalCountOfBlock() ;
    /**
     * 分水房总数
     * @return
     */
    Integer totalCountOfDivide() ;
    /**
     * 取水口总数
     * @return
     */
    Integer totalCountOfIntake() ;
    /**
     * 已绑定控制器的取水口总数
     * @return
     */
    Integer totalCountOfIntakeWithController() ;
   /**
     * 未绑定控制器的取水口总数
     * @return
     */
    Integer totalCountOfIntakeWithoutController() ;
    /**
     * 阀控器总数
     * @return
     */
    Integer totalCountOfController() ;
    /**
     * 流浪阀控器总数
     * @return
     */
    Integer totalCountOfControllerTramp() ;
 
    /**
     * 开阀总数
     */
    Integer totalCountOfOpenValve(@Param("dt") Date dt) ;
 
    /**
     * 关阀总数
     */
    Integer totalCountOfCloseValve(@Param("dt") Date dt) ;
 
    /**
     * 报警总数
     */
    Integer totalCountOfAlarm(@Param("dt") Date dt) ;
 
    /**
     * 无报警总数
     */
    Integer totalCountOfNoAlarm(@Param("dt") Date dt) ;
 
 
    /**
     * 从某时以来,曾上报过数据的总数
     */
    Integer mTotalCountOfReport(@Param("fromDt") Date fromDt) ;
    /**
     * 从某时以来,未曾上报过数据的总数
     */
    Integer mTotalCountOfNoReport(@Param("fromDt") Date fromDt) ;
    /**
     * 从未上报过数据的总数
     */
    Integer mTotalCountOfNeverReport() ;
 
 
    /**
     * 从某时以来,曾阀开总数
     */
    Integer mTotalCountOfOpenValve(@Param("fromDt") Date fromDt) ;
    /**
     * 从某时以来,曾阀关总数
     */
    Integer mTotalCountOfCloseValve(@Param("fromDt") Date fromDt) ;
    /**
     * 从未开过阀的总数
     */
    Integer mTotalCountOfNeverOpenValve() ;
 
 
 
    /**
     * 从某时以来,曾报警总数
     */
    Integer mTotalCountOfAlarm(@Param("fromDt") Date fromDt) ;
    /**
     * 从某时以来,曾无报警总数
     */
    Integer mTotalCountOfNoAlarm(@Param("fromDt") Date fromDt) ;
    /**
     * 从未报过警总数
     */
    Integer mTotalCountOfNeverAlarm() ;
 
 
 
 
    /**
     * 某日农户用水前X名
     * @param idStart 起始id
     * @param idEnd 截止id
     * @param count 前几名
     * @return 实体集合
     */
    List<VoTopXClient> topXClientAtCertainDay(@Param("idStart") Long idStart, @Param("idEnd") Long idEnd, @Param("count") int count) ;
 
    /**
     * 某日取水口用水前X名
     * @param idStart 起始id
     * @param idEnd 截止id
     * @param count 前几名
     * @return 实体集合
     */
    List<VoTopXIntake> topXIntakeAtCertainDay(@Param("idStart") Long idStart, @Param("idEnd") Long idEnd, @Param("count") int count) ;
 
 
}