package com.ruoyi.project.system.dept.service; import java.util.List; import com.ruoyi.framework.web.domain.Ztree; import com.ruoyi.project.system.dept.domain.Dept; import com.ruoyi.project.system.role.domain.Role; /** * 部门管理 服务层 * * @author ruoyi */ public interface IDeptService { /** * 查询部门管理数据 * * @param dept 部门信息 * @return 部门信息集合 */ List selectDeptList(Dept dept); List selectDeptListByCompanyId(Long companyId); /** * 查询部门管理树 * * @param dept 部门信息 * @return 所有部门信息 */ List selectDeptTree(Dept dept); /** * 根据角色ID查询菜单 * * @param role 角色对象 * @return 菜单列表 */ List roleDeptTreeData(Role role); /** * 查询部门人数 * * @param parentId 父部门ID * @return 结果 */ int selectDeptCount(Long parentId); /** * 查询部门是否存在用户 * * @param deptId 部门ID * @return 结果 true 存在 false 不存在 */ boolean checkDeptExistUser(Long deptId); /** * 删除部门管理信息 * * @param deptId 部门ID * @return 结果 */ int deleteDeptById(Long deptId); /** * 新增保存部门信息 * * @param dept 部门信息 * @return 结果 */ int insertDept(Dept dept); /** * 修改保存部门信息 * * @param dept 部门信息 * @return 结果 */ int updateDept(Dept dept); /** * 根据部门ID查询信息 * * @param deptId 部门ID * @return 部门信息 */ Dept selectDeptById(Long deptId); /** * 校验部门名称是否唯一 * * @param dept 部门信息 * @return 结果 */ String checkDeptNameUnique(Dept dept); /** * get by id */ Dept getDepById(Long deptId); }