| | |
| | | import com.dy.pipIrrGlobal.pojoSt.StLossMonth; |
| | | import com.dy.pipIrrGlobal.voSt.VoIntakeAmountStatistics; |
| | | import com.dy.pipIrrGlobal.voSt.VoIntakeLossStatistics; |
| | | import com.dy.pipIrrGlobal.voSt.VoMonthAmount; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | |
| | | * @param month 某月 |
| | | * @return |
| | | */ |
| | | StIntakeAmountMonth selectByIntakeIdAndYearAndMonth(@Param("intakeId")Long intakeId, @Param("year")Integer year, @Param("month")Integer month) ; |
| | | List<StIntakeAmountMonth> selectByIntakeIdAndYearAndMonth(@Param("intakeId")Long intakeId, @Param("year")Integer year, @Param("month")Integer month) ; |
| | | |
| | | |
| | | /** |
| | |
| | | * @param year 统计年度 |
| | | * @return |
| | | */ |
| | | List<VoIntakeAmountStatistics> statisticsByIntake(Integer year, Integer month, Long startId, Long endId) ; |
| | | List<VoIntakeAmountStatistics> statisticsByIntake(@Param("year")Integer year, @Param("month")Integer month, @Param("startId")Long startId, @Param("endId")Long endId) ; |
| | | /** |
| | | * 以取水口维度统计取水量 |
| | | * @param year 统计年度 |
| | | * @return |
| | | */ |
| | | List<VoIntakeAmountStatistics> statisticsByIntake(Integer year) ; |
| | | |
| | | |
| | | //////////////////////////////////////////////// |
| | | // 统计查询 |
| | | /////////////////////////////////////////////// |
| | | |
| | | /** |
| | | * 为查询统计取水口日漏损量,统计取水口数量 |
| | | * @param intakeN |
| | | * @return |
| | | */ |
| | | Long selectIntakeCount4AmountMonth(@Param("intakeNum")String intakeN) ; |
| | | |
| | | /** |
| | | * 为查询统计取水口日漏损量,查询一页取水口ID |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<VoMonthAmount> selectIntakes4AmountMonth(Map<?, ?> params) ; |
| | | |
| | | /** |
| | | * 查询统计取水口月漏损量 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | //下面1到12月分了2个查询,原因是在一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 |
| | | List<VoMonthAmount> selectIntakeAmountOfMonth01_06(Map<?, ?> params); |
| | | List<VoMonthAmount> selectIntakeAmountOfMonth07_12(Map<?, ?> params); |
| | | } |