|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoRm.RmIntakeAmountDay; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSt.VoDayIntakeAmount; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voRm.VoIntakeAmountDay; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSt.VoIntakeAmountStatistics; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSt.*; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 以取水口维度统计取水口取水量 | 
|---|
|  |  |  | * @param statisticsStartId 统计时间段开始时间对应的ID | 
|---|
|  |  |  | * @param statisticsEndId 统计时间段截止时间对应的ID | 
|---|
|  |  |  | * @param statisticsEndId 统计时间段结束时间对应的ID | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntakeAmountStatistics> statisticsByIntake(@Param("startId")Long statisticsStartId, @Param("endId")Long statisticsEndId) ; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoDayIntakeAmount> getDayIntakeAmount(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 统计指定年份各月用水量记录数量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getMonthIntakeAmountCount(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 统计指定年份各月用水量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoMonthAmount> getMonthIntakeAmount(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //////////////////////////////////////////////// | 
|---|
|  |  |  | // 统计查询 | 
|---|
|  |  |  | /////////////////////////////////////////////// | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 为查询统计取水口日漏损量,统计取水口数量 | 
|---|
|  |  |  | * @param intakeN | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long selectIntakeCount4AmountDay(@Param("intakeNum")String intakeN) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 为查询统计取水口日漏损量,查询一页取水口ID | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakes4AmountDay(Map<?, ?> params) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询统计取水口日漏损量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //下面1到31号分了6个查询,原因是入一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakeAmountOfDay01_05(Map<?, ?> params); | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakeAmountOfDay06_10(Map<?, ?> params); | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakeAmountOfDay11_15(Map<?, ?> params); | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakeAmountOfDay16_20(Map<?, ?> params); | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakeAmountOfDay21_25(Map<?, ?> params); | 
|---|
|  |  |  | List<VoDayIntakeAmount> selectIntakeAmountOfDay26_31(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 指定时间段用水量超过指定值的取水口数量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getUseWaterGtValueIntakesCount(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 指定时间段用水量超过指定值的取水口 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntakeAccumulateAmount> getUseWaterGtValueIntakes(Map<String, Object> params); | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 指定时间段内消费金额超过指定值的取水口的数量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getExpenseGtValueIntakesCount(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 指定时间段内消费金额超过指定值的取水口 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntakeAccumulateAmount> getExpenseGtValueIntakes(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 指定时间段内取水次数超过指定值的取水口的数量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getUseWaterTimesGtValueIntakesCount(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 指定时间段内取水次数超过指定值的取水口 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntakeAccumulateAmount> getUseWaterTimesGtValueIntakes(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|