zuoxiao
5 天以前 cc21e79cd80345b97cc899ddff02c962d4f432fc
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
package com.dy.pipIrrGlobal.daoTmp;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountDay;
import com.dy.pipIrrGlobal.pojoRm.RmLossDay;
import com.dy.pipIrrGlobal.pojoSt.StIntakeAmountMonth;
import com.dy.pipIrrGlobal.pojoSt.StIntakeAmountYear;
import com.dy.pipIrrGlobal.pojoSt.StLossMonth;
import com.dy.pipIrrGlobal.pojoSt.StLossYear;
import com.dy.pipIrrGlobal.voSt.VoIntake;
import com.dy.pipIrrGlobal.voTmp.VoRmIntakeAmountDay;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
/**
 * @Author: liurunyu
 * @Date: 2024/12/14 09:27
 * @Description
 */
@Mapper
public interface ChangeMapper extends BaseMapper<Object> {
 
    /**
     * 查询全部取水口
     *
     * @return 实体集合
     */
    List<VoIntake> selectAllPrIntakes();
 
    /**
     * 查询一个取水口的日用水量统计记录
     *
     * @return 实体集合
     */
    List<RmIntakeAmountDay> selectOneIntakeAllAmountDay(@Param("intakeId")Long intakeId);
 
    /**
     * 更新一个取水口的日用水量统计
     *
     * @return 影响实体数
     */
    int updateOneIntakeAmountDay(@Param("id")Long id, @Param("amount")Double amount);
    /**
     * 更新一个取水口的日用水量统计
     *
     * @return 影响实体数
     */
    /**
     * 更新一个取水口的日用水量统计
     *
     * @return 影响实体数
     */
    int updateOneIntakeAmountDay1(@Param("intakeId")Long intakeId, @Param("dt")Date dt,
                                  @Param("amount")Double amount, @Param("money")Double money, @Param("times")Integer times);
 
 
 
 
    /**
     * 删除所有取水口的日用水量统计
     * @return 影响实体数
     */
    int deleteSomeIntakeAmountDay();
 
 
 
    /**
     * 统计所有取水口的日用水量
     * @return 实体集合
     */
    List<VoRmIntakeAmountDay> statisticAllIntakeAmountDayFromOpenCloseValveHistory(@Param("startDt")Date startDt,
                                                                                   @Param("endDt")Date endDt);
 
    List<RmIntakeAmountDay> selectStIntakeDayStatisticsByDate(@Param("intakeId")Long intakeId, @Param("date")Date date);
 
    /**
     * 删除所有取水口的月用水量统计
     * @return 影响实体数
     */
    int deleteAllIntakeAmountMonth();
 
 
    /**
     * 统计所有取水口的月用水量
     * @return 实体集合
     */
    List<StIntakeAmountMonth> statisticAllIntakeAmountMonthFromAmountDay(@Param("startDt")Date startDt,
                                                                         @Param("endDt")Date endDt);
    /**
     * 保存取水口的月用水量统计
     * @return 影响实体数
     */
    int saveOneIntakeAmountMonth(StIntakeAmountMonth pojo);
 
 
 
 
    /**
     * 删除所有取水口的年用水量统计
     * @return 影响实体数
     */
    int deleteAllIntakeAmountYear();
 
 
    /**
     * 统计所有取水口的年用水量
     * @return 实体集合
     */
    List<StIntakeAmountYear> statisticAllIntakeAmountYearFromAmountDay(@Param("startDt")Date startDt,
                                                                       @Param("endDt")Date endDt);
    /**
     * 保存取水口的月用水量统计
     * @return 影响实体数
     */
    int saveOneIntakeAmountYear(StIntakeAmountYear pojo);
 
 
    ////////////////////////////////////////
    //
    //漏损相关
    //
    ////////////////////////////////////////
 
    /**
     * 查询一个取水口的日漏损量统计记录
     *
     * @return 实体集合
     */
    List<RmLossDay> selectOneIntakeAllLossDay(@Param("intakeId")Long intakeId);
 
    /**
     * 更新一个取水口的日漏损量统计
     *
     * @return 影响实体数
     */
    int updateOneIntakeLossDay(@Param("id")Long id, @Param("loss")Double loss);
 
 
 
    /**
     * 删除所有取水口的月漏损量统计
     * @return 影响实体数
     */
    int deleteAllIntakeLossMonth();
 
 
    /**
     * 统计所有取水口的月漏损量
     * @return 实体集合
     */
    List<StLossMonth> statisticAllIntakeLossMonthFromLossDay(@Param("startDt")Date startDt,
                                                             @Param("endDt")Date endDt);
    /**
     * 保存取水口的月漏损量统计
     * @return 影响实体数
     */
    int saveOneIntakeLossMonth(StLossMonth pojo);
 
 
    /**
     * 删除所有取水口的年漏损量统计
     * @return 影响实体数
     */
    int deleteAllIntakeLossYear();
 
 
    /**
     * 统计所有取水口的年漏损量
     * @return 实体集合
     */
    List<StLossYear> statisticAllIntakeLossYearFromLossDay(@Param("startDt")Date startDt,
                                                           @Param("endDt")Date endDt);
    /**
     * 保存取水口的月漏损量统计
     * @return 影响实体数
     */
    int saveOneIntakeLossYear(StLossYear pojo);
 
}