| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dy.pipIrrGlobal.pojoSt.StLossMonth; |
| | | 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 |
| | | */ |
| | | StLossMonth selectByIntakeIdAndYearAndMonth(@Param("intakeId")Long intakeId, @Param("year")Integer year, @Param("month")Integer month) ; |
| | | List<StLossMonth> selectByIntakeIdAndYearAndMonth(@Param("intakeId")Long intakeId, @Param("year")Integer year, @Param("month")Integer month) ; |
| | | |
| | | /** |
| | | * update record selective |
| | |
| | | */ |
| | | List<VoIntakeLossStatistics> statisticsByIntake(Integer year) ; |
| | | |
| | | |
| | | //////////////////////////////////////////////// |
| | | // 统计查询 |
| | | /////////////////////////////////////////////// |
| | | |
| | | /** |
| | | * 为查询统计取水口日漏损量,统计取水口数量 |
| | | * @param intakeN |
| | | * @return |
| | | */ |
| | | Long selectIntakeCount4LossMonth(@Param("intakeNum")String intakeN) ; |
| | | |
| | | /** |
| | | * 为查询统计取水口日漏损量,查询一页取水口ID |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<VoMonthAmount> selectIntakes4LossMonth(Map<?, ?> params) ; |
| | | |
| | | /** |
| | | * 查询统计取水口月漏损量 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | //下面1到12月分了2个查询,原因是在一个查询中,非常慢,不知道什么原因,也许是子查询太多的原因 |
| | | List<VoMonthAmount> selectLossAmountOfMonth01_06(Map<?, ?> params); |
| | | List<VoMonthAmount> selectLossAmountOfMonth07_12(Map<?, ?> params); |
| | | |
| | | } |