|  |  | 
 |  |  | package com.dy.pipIrrGlobal.daoPr; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoPr.PrDivide; | 
 |  |  | import com.dy.pipIrrGlobal.voPr.VoDivide; | 
 |  |  | import com.dy.pipIrrGlobal.voPr.VoSimpleDivide; | 
 |  |  | import org.apache.ibatis.annotations.Mapper; | 
 |  |  | import org.apache.ibatis.annotations.Param; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | 
 |  |  |  * @LastEditTime 2023/12/21 9:16 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  | public interface PrDivideMapper { | 
 |  |  | @Mapper | 
 |  |  | public interface PrDivideMapper extends BaseMapper<PrDivide> { | 
 |  |  |     int deleteByPrimaryKey(Long id); | 
 |  |  |  | 
 |  |  |     int insert(PrDivide record); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Integer deleteDivideById(@Param("id") Long id); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据分水房编号获取所属片区编号 | 
 |  |  |      * @param divideId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Long getBlockIdById(@Param("divideId") Long divideId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据片区ID获取分水房列表 | 
 |  |  |      * @param blockId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoSimpleDivide> getDividesByBlockId(Long blockId); | 
 |  |  | } |