package cn.gistack.sm.sjztmd.mapper;
|
|
import cn.gistack.sm.sjztmd.dto.AttResBaseUserDTO;
|
import cn.gistack.sm.sjztmd.entity.AttResBase;
|
import cn.gistack.sm.sjztmd.vo.AttResAdVO;
|
import cn.gistack.sm.sjztmd.vo.AttResBaseGeneralInvestigationVO;
|
import cn.gistack.sm.sjztmd.vo.AttResBaseVO;
|
import cn.gistack.sm.sjztmd.vo.ManagePersonVO;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* AttResBaseMapper 接口
|
*
|
* @author Chill
|
*/
|
public interface AttResBaseMapper extends BaseMapper<AttResBase> {
|
|
|
List<AttResBase> selectAttResBasePage(IPage<AttResBase> page, @Param("attResBase") AttResBase attResBase);
|
|
List<AttResBaseGeneralInvestigationVO> selectAttResBaseGeneralInvestigation(IPage<AttResBaseGeneralInvestigationVO> page, @Param("attResBase") AttResBaseGeneralInvestigationVO attResBase);
|
|
List<AttResBase> getListByRegion(IPage<AttResBase> page,@Param("obj") Map<String, Object> obj);
|
|
AttResBase getDetailByCode(@Param("code") String code);
|
|
/**
|
* 获取水库对应责任人分页数据
|
* @param params 条件查询参数对象
|
// * @param ad_code 行政区like条件
|
// * @param adGrad 级别
|
* @param page 分页查询参数对象
|
* @return
|
*/
|
List<AttResBaseUserDTO> getAttResBaseUserPage(IPage<AttResBaseUserDTO> page,
|
@Param("params") Map<String, Object> params);
|
|
/**
|
* 查询各类型责任人
|
* @param guid 水库 guid
|
* @return
|
*/
|
List<ManagePersonVO> getUserByResBaseGuid(@Param("guid") String guid);
|
|
Boolean updateResBaseByGuid(@Param("attResBase") AttResBase attResBase);
|
|
/**
|
* 查询当前水库对应的市级编号和县区编号
|
* @param res_cd
|
* @return
|
*/
|
AttResBaseVO getCityCountyCodeByResGuid(@Param("guid") String res_cd);
|
|
/**
|
* 根据水库编码获取行政区数据
|
* @param guid
|
* @return
|
*/
|
AttResAdVO getWaterRegionInfoByResGuid(@Param("guid") String guid);
|
|
/**
|
* 获取水库基本信息表DimResInfo总数
|
* @return
|
*/
|
int getDimResInfoACount();
|
|
Boolean updateIsShowStatus(@Param("ids") String ids, @Param("isShow") Integer status);
|
|
/**
|
* 根据水库名称、所在区域查询改水库的数量
|
* @param resName 水库名称
|
* @param countyCode 区县编号
|
* @return
|
*/
|
Integer getWaterCountByResNameAndCountyName(@Param("resName") String resName,@Param("countyCode") String countyCode);
|
}
|