|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoIr.IrProject; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoPr.PrController; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoPr.PrIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoProject; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voPr.VoIntake; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoProjectDetail; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoProjectOne; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voIr.VoProjectSimple; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author :WuZeYu | 
|---|
|  |  |  | * @Date :2024/5/14  15:04 | 
|---|
|  |  |  | * @LastEditTime :2024/5/14  15:04 | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2025-03-18 10:57 | 
|---|
|  |  |  | * @LastEditTime 2025-03-18 10:57 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface IrProjectMapper extends BaseMapper<IrProject> { | 
|---|
|  |  |  | //增 | 
|---|
|  |  |  | int deleteByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int insert(IrProject record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int insertSelective(IrProject record); | 
|---|
|  |  |  | //删 | 
|---|
|  |  |  | int deleteLogicById(Long id); | 
|---|
|  |  |  | //改 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | IrProject selectByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateByPrimaryKeySelective(IrProject record); | 
|---|
|  |  |  | //查一个 | 
|---|
|  |  |  | IrProject selectById(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateByPrimaryKey(IrProject record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | VoProjectOne selectById(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int deleteLogicById(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改项目状态 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int updateProjectState(IrProject record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据下级Id获取上一级地址Id | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param vaId 下一级Id | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getSupperByVillageId(long vaId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件获取取水口记录数 | 
|---|
|  |  |  | * 根据指定条件获取项目记录数 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getRecordCount(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件获取取水口记录 | 
|---|
|  |  |  | * 根据指定条件获取项目记录 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoProject> getProjects(Map<?, ?> params); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件获取项目记录(精简)数量 | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getSimpleProjectsCount(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件获取项目记录(精简) | 
|---|
|  |  |  | * @param params | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<VoProjectSimple> getSimpleProjects(Map<?, ?> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据项目Id获取项目详情,编辑项目信息使用 | 
|---|
|  |  |  | * @param projectId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | VoProjectDetail getProjectDetail(Long projectId); | 
|---|
|  |  |  | } | 
|---|