package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.common.core.domain.entity.InvestigateDisposition;
import org.apache.ibatis.annotations.Param;

/**
 * 考察配置Mapper接口
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
public interface InvestigateDispositionMapper 
{
    /**
     * 查询考察配置
     * 
     * @param investigateDispositionId 考察配置主键
     * @return 考察配置
     */
    public InvestigateDisposition selectInvestigateDispositionByInvestigateDispositionId(Long investigateDispositionId);

    /**
     * 查询考察配置列表
     * 
     * @param investigateDisposition 考察配置
     * @return 考察配置集合
     */
    public List<InvestigateDisposition> selectInvestigateDispositionList(InvestigateDisposition investigateDisposition);

    /**
     * 新增考察配置
     * 
     * @param investigateDisposition 考察配置
     * @return 结果
     */
    public int insertInvestigateDisposition(InvestigateDisposition investigateDisposition);

    /**
     * 修改考察配置
     * 
     * @param investigateDisposition 考察配置
     * @return 结果
     */
    public int updateInvestigateDisposition(InvestigateDisposition investigateDisposition);

    /**
     * 删除考察配置
     * 
     * @param investigateDispositionId 考察配置主键
     * @return 结果
     */
    public int deleteInvestigateDispositionByInvestigateDispositionId(Long investigateDispositionId);

    /**
     * 批量删除考察配置
     * 
     * @param investigateDispositionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInvestigateDispositionByInvestigateDispositionIds(Long[] investigateDispositionIds);

    /**
     * 根据考察配置id查询信息
     * @param investigateDispositionId
     * @return
     */
    public InvestigateDisposition selectInvestigateDispositionById(Long investigateDispositionId);

    /**
     * 根据ID查询所有子考察配置
     *
     * @param investigateDispositionId 考察配置ID
     * @return 考察配置列表
     */
    public List<InvestigateDisposition> selectChildrenInvestigateDispositionById(Long investigateDispositionId);
    /**
     * 修改子元素关系
     *
     * @param investigateDispositions 子元素
     * @return 结果
     */
    public int updateInvestigateDispositionChildren(@Param("investigateDispositions") List<InvestigateDisposition> investigateDispositions);
}
