IArchivesDeptService.java 1.52 KB
package com.ruoyi.service;

import java.util.List;

import com.ruoyi.domain.ArchivesDept;
import com.ruoyi.util.TreeSelect;

/**
 * 部门Service接口
 * 
 * @author li
 * @date 2022-08-01
 */
public interface IArchivesDeptService 
{
    /**
     * 查询部门
     * 
     * @param deptId 部门主键
     * @return 部门
     */
    public ArchivesDept selectArchivesDeptByDeptId(Long deptId);

    /**
     * 查询部门列表
     * 
     * @param archivesDept 部门
     * @return 部门集合
     */
    public List<ArchivesDept> selectArchivesDeptList(ArchivesDept archivesDept);

    /**
     * 新增部门
     * 
     * @param archivesDept 部门
     * @return 结果
     */
    public int insertArchivesDept(ArchivesDept archivesDept);

    /**
     * 修改部门
     * 
     * @param archivesDept 部门
     * @return 结果
     */
    public int updateArchivesDept(ArchivesDept archivesDept);

    /**
     * 批量删除部门
     * 
     * @param deptIds 需要删除的部门主键集合
     * @return 结果
     */
    public int deleteArchivesDeptByDeptIds(Long[] deptIds);

    /**
     * 删除部门信息
     * 
     * @param deptId 部门主键
     * @return 结果
     */
    public int deleteArchivesDeptByDeptId(Long deptId);


    public List<ArchivesDept> buildDeptTree(List<ArchivesDept> depts);
    /**
     * 构建前端所需要下拉树结构
     *
     * @param depts 部门列表
     * @return 下拉树结构列表
     */
    public List<TreeSelect> buildDeptTreeSelect(List<ArchivesDept> depts);

}