package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.InvestigateDisposition;

/**
 * 考察配置Service接口
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
public interface IInvestigateDispositionService 
{
    /**
     * 查询考察配置
     * 
     * @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);
    public int updateInvestigateDispositionStatus(InvestigateDisposition investigateDisposition);

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

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

    /**
     * 查询部门树结构信息
     *
     * @param investigateDisposition 部门信息
     * @return 部门树信息集合
     */
    public List<TreeSelect> selectInvestigateDispositionTreeList(InvestigateDisposition investigateDisposition);

    /**
     * 构建前端所需要树结构
     *
     * @param investigateDispositions 部门列表
     * @return 树结构列表
     */
    public List<InvestigateDisposition> buildInvestigateDispositionTree(List<InvestigateDisposition> investigateDispositions);

    /**
     * 构建前端所需要下拉树结构
     *
     * @param investigateDispositions 部门列表
     * @return 下拉树结构列表
     */
    public List<TreeSelect> buildInvestigateDispositionTreeSelect(List<InvestigateDisposition> investigateDispositions);
}
