New file |
| | |
| | | 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) ; |
| | | |
| | | |
| | | } |