|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoPr.PrIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voPr.VoIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voPr.VoOnLineIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voPr.*; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param id primary key | 
|---|
|  |  |  | * @return object by primary key | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PrIntake selectByPrimaryKey(Long id); | 
|---|
|  |  |  | VoAllIntake selectByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 得到全部实体 | 
|---|
|  |  |  | * @return 全部实体 | 
|---|
|  |  |  | * */ | 
|---|
|  |  |  | List<PrIntake> selectAll(); | 
|---|
|  |  |  | List<VoAllIntake> selectAll(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 逻辑删除 | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return  address | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer getRecordCountOfIntake(@Param("intakeId") Long intakeId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据村Id获取全部地址 | 
|---|
|  |  |  | * @param intakeId 村Id | 
|---|
|  |  |  | * @return  intakeName  取水口编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | String getNameById(@Param("intakeId") Long intakeId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据村Id获取全部地址 | 
|---|
|  |  |  | 
|---|
|  |  |  | * 根据操作员获取常用取水口 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoOnLineIntake> getUsedIntakes(@Param("onLineMap") String onLineMap, @Param("operator") Long operator); | 
|---|
|  |  |  | List<VoOnLineIntake> getUsedIntakes(@Param("onLineMap") String onLineMap, @Param("operatorId") Long operatorId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 取水口名称换取水口ID,扫码开阀使用 | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<Long> getIntakeIdByNameExcludeId(@Param("id")Long id, @Param("intakeName")String intakeName); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * app修改取水口经纬度 | 
|---|
|  |  |  | * @param record | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int updateByPrimaryKeySelective1(IntakeUpdateLngLat record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取未绑定到轮灌组的取水口列表 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntakeSimple> getFreeIntakes(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取未绑定虚拟卡的取水口列表,给取水口绑虚拟卡使用 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoIntakeSimple> getNotLinkVcIntakes(); | 
|---|
|  |  |  | } | 
|---|