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.VoDivideDetails; 
 | 
import com.dy.pipIrrGlobal.voPr.VoSimpleDivide; 
 | 
import org.apache.ibatis.annotations.Mapper; 
 | 
import org.apache.ibatis.annotations.Param; 
 | 
  
 | 
import java.util.List; 
 | 
import java.util.Map; 
 | 
  
 | 
/** 
 | 
 * @author ZhuBaoMin 
 | 
 * @date 2023/12/21 9:16 
 | 
 * @LastEditTime 2023/12/21 9:16 
 | 
 * @Description 
 | 
 */ 
 | 
@Mapper 
 | 
public interface PrDivideMapper extends BaseMapper<PrDivide> { 
 | 
    int deleteByPrimaryKey(Long id); 
 | 
  
 | 
    int insert(PrDivide record); 
 | 
  
 | 
    int insertSelective(PrDivide record); 
 | 
  
 | 
    /** 
 | 
     *  2025-01-21 废弃 
 | 
     */ 
 | 
    PrDivide selectByPrimaryKey(Long id); 
 | 
  
 | 
    VoDivideDetails getDivideDetails(Long id); 
 | 
  
 | 
    int updateByPrimaryKeySelective(PrDivide record); 
 | 
  
 | 
    int updateByPrimaryKey(PrDivide record); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取分水房记录数 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    Long getRecordCount(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取分水房记录 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    List<VoDivide> getDivides(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据分水房ID逻辑删除分水房 
 | 
     * @param id 
 | 
     * @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); 
 | 
} 
 |