| package com.dy.pipIrrGlobal.daoPr; | 
|   | 
|   | 
| import com.dy.pipIrrGlobal.pojoPr.PrIntake; | 
| import com.dy.pipIrrGlobal.voPr.IntakeUpdateLngLat; | 
| import com.dy.pipIrrGlobal.voPr.VoAllIntake; | 
| import com.dy.pipIrrGlobal.voPr.VoIntake; | 
| import com.dy.pipIrrGlobal.voPr.VoOnLineIntake; | 
| import org.apache.ibatis.annotations.Mapper; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
| /** | 
|  * @author wuzeyu | 
|  * @date 2023/12/26 13:56 | 
|  * @LastEditTime 2023/12/26 13:56 | 
|  * @Description | 
|  */ | 
| @Mapper | 
| public interface PrIntakeMapper { | 
|   | 
|     /** | 
|      * select by primary key | 
|      * @param id primary key | 
|      * @return object by primary key | 
|      */ | 
|     VoAllIntake selectByPrimaryKey(Long id); | 
|   | 
|     /** | 
|      * 得到全部实体 | 
|      * @return 全部实体 | 
|      * */ | 
|     List<VoAllIntake> selectAll(); | 
|   | 
|     /** | 
|      * 逻辑删除 | 
|      * @param id primaryKey | 
|      * @return deleteCount | 
|      */ | 
|     int deleteLogicById(Long id); | 
|   | 
|     /** | 
|      * 实际删除 | 
|      * @param id primaryKey | 
|      * @return deleteCount | 
|      */ | 
|     int deleteByPrimaryKey(Long id); | 
|   | 
|     int insert(PrIntake record); | 
|   | 
|     int insertSelective(PrIntake record); | 
|   | 
|     /** | 
|      * update record | 
|      * @param record the updated record | 
|      * @return update count | 
|      */ | 
|     int updateByPrimaryKey(PrIntake record); | 
|   | 
|     /** | 
|      * update record selective | 
|      * @param record the updated record | 
|      * @return update count | 
|      */ | 
|     int updateByPrimaryKeySelective(PrIntake record); | 
|   | 
|     /** | 
|      * 根据指定条件获取取水口记录数 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     Long getRecordCount(Map<?, ?> params); | 
|   | 
|     /** | 
|      * 根据指定条件获取取水口记录 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     List<VoIntake> getIntakes(Map<?, ?> params); | 
|   | 
|     /** | 
|      * 根据下级Id获取上一级地址Id | 
|      * @param vaId 下一级Id | 
|      * @return | 
|      */ | 
|     Long getSupperByVillageId(long vaId); | 
|   | 
|     /** | 
|      * 根据取水口编号获取未删除的取水口数量 | 
|      * @param intakeId | 
|      * @return  address | 
|      */ | 
|     Integer getRecordCountOfIntake(@Param("intakeId") Long intakeId); | 
|   | 
|     /** | 
|      * 根据村Id获取全部地址 | 
|      * @param villageId 村Id | 
|      * @return  address  全部五级地址 | 
|      */ | 
|     String getAddressByVillageId(long villageId); | 
|   | 
|     /** | 
|      * 根据区域Id获取区域等级 | 
|      * @param regionId 区域Id | 
|      * @return  Level  区域等级 | 
|      */ | 
|     Integer getLevelByRegionId(long regionId); | 
|   | 
|     /** | 
|      * 获取未绑控制器的取水口列表 | 
|      * @return | 
|      */ | 
|     List<Map<String, Object>> getNoBindingIntakes(); | 
|   | 
|     /** | 
|      * 获取取水口数量(在线和不在线) | 
|      * @param params | 
|      * @return | 
|      */ | 
|     Long getOnLineIntakesCount(Map<?, ?> params); | 
|   | 
|     /** | 
|      * 获取取水口列表(在线和不在线) | 
|      * @param params | 
|      * @return | 
|      */ | 
|     //List<VoOnLineIntake> getOnLineIntakes(@Param("onLineMap") String onLineMap, @Param("isOnLine") Boolean isOnLine); | 
|     List<VoOnLineIntake> getOnLineIntakes(Map<?, ?> params); | 
|   | 
|   | 
|     /** | 
|      * 获取取水口数量(在线或不在线) | 
|      * @param params | 
|      * @return | 
|      */ | 
|     Long selectIntakesCountForOnLine(Map<?, ?> params); | 
|   | 
|     /** | 
|      * 获取取水口列表在线或不在线) | 
|      * @param params | 
|      * @return | 
|      */ | 
|     List<VoOnLineIntake> selectIntakesForOnLine(Map<?, ?> params); | 
|   | 
|   | 
|   | 
|     /** | 
|      * 根据取水口编号获取取水口对象 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     VoOnLineIntake getIntakeByName(Map<?, ?> params); | 
|   | 
|   | 
|     /** | 
|      * 根据操作员获取常用取水口 | 
|      * @return | 
|      */ | 
|     List<VoOnLineIntake> getUsedIntakes(@Param("onLineMap") String onLineMap, @Param("operatorId") Long operatorId); | 
|   | 
|     /** | 
|      * 取水口名称换取水口ID,扫码开阀使用 | 
|      * @param intakeName | 
|      * @return | 
|      */ | 
|     Long getIntakeIdByName(String intakeName); | 
|   | 
|     /** | 
|      * 取水口名称换取水口ID,验证是否重复名称使用 | 
|      * @param intakeName | 
|      * @return | 
|      */ | 
|     List<Long> getIntakeIdsByName(String intakeName); | 
|   | 
|     /** | 
|      * 取水口名称换取水口ID,验证是否重复名称使用 | 
|      * @param id | 
|      * @param intakeName | 
|      * @return | 
|      */ | 
|     List<Long> getIntakeIdByNameExcludeId(@Param("id")Long id, @Param("intakeName")String intakeName); | 
|   | 
|   | 
|     /** | 
|      * app修改取水口经纬度 | 
|      * @param record | 
|      * @return | 
|      */ | 
|     int updateByPrimaryKeySelective1(IntakeUpdateLngLat record); | 
|   | 
| } |