package com.dy.pipIrrGlobal.daoPr;
|
|
|
import com.dy.pipIrrGlobal.pojoPr.PrIntake;
|
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
|
*/
|
PrIntake selectByPrimaryKey(Long id);
|
|
/**
|
* 得到全部实体
|
* @return 全部实体
|
* */
|
List<PrIntake> 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);
|
}
|