Files
RuoYi/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java

103 lines
2.2 KiB
Java
Raw Normal View History

2018-10-07 14:16:47 +08:00
package com.ruoyi.system.service;
2018-07-09 08:44:52 +08:00
import java.util.List;
2019-03-08 14:44:38 +08:00
import com.ruoyi.common.core.domain.Ztree;
2018-10-07 14:16:47 +08:00
import com.ruoyi.system.domain.SysDept;
import com.ruoyi.system.domain.SysRole;
2018-07-09 08:44:52 +08:00
/**
* 部门管理 服务层
*
* @author ruoyi
*/
2018-10-07 14:16:47 +08:00
public interface ISysDeptService
2018-07-09 08:44:52 +08:00
{
/**
* 查询部门管理数据
2018-07-09 08:44:52 +08:00
*
2018-07-28 18:31:41 +08:00
* @param dept 部门信息
* @return 部门信息集合
*/
2018-10-07 14:16:47 +08:00
public List<SysDept> selectDeptList(SysDept dept);
2018-07-09 08:44:52 +08:00
/**
* 查询部门管理树
*
* @param dept 部门信息
2018-07-09 08:44:52 +08:00
* @return 所有部门信息
*/
2019-03-01 15:26:04 +08:00
public List<Ztree> selectDeptTree(SysDept dept);
2018-07-09 08:44:52 +08:00
2018-09-03 08:45:08 +08:00
/**
* 根据角色ID查询菜单
*
* @param role 角色对象
* @return 菜单列表
*/
2019-03-01 15:26:04 +08:00
public List<Ztree> roleDeptTreeData(SysRole role);
2018-09-03 08:45:08 +08:00
2018-07-09 08:44:52 +08:00
/**
* 查询部门人数
*
* @param parentId 父部门ID
* @return 结果
*/
public int selectDeptCount(Long parentId);
/**
* 查询部门是否存在用户
*
* @param deptId 部门ID
* @return 结果 true 存在 false 不存在
*/
public boolean checkDeptExistUser(Long deptId);
/**
* 删除部门管理信息
*
* @param deptId 部门ID
* @return 结果
*/
public int deleteDeptById(Long deptId);
/**
2018-07-22 23:05:50 +08:00
* 新增保存部门信息
2018-07-09 08:44:52 +08:00
*
* @param dept 部门信息
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public int insertDept(SysDept dept);
2018-07-22 23:05:50 +08:00
/**
* 修改保存部门信息
*
* @param dept 部门信息
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public int updateDept(SysDept dept);
2018-07-09 08:44:52 +08:00
/**
* 根据部门ID查询信息
*
* @param deptId 部门ID
* @return 部门信息
*/
2018-10-07 14:16:47 +08:00
public SysDept selectDeptById(Long deptId);
/**
* 根据ID查询所有子部门正常状态
*
* @param deptId 部门ID
* @return 子部门数
*/
public int selectNormalChildrenDeptById(Long deptId);
2018-07-09 08:44:52 +08:00
/**
* 校验部门名称是否唯一
*
* @param dept 部门信息
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public String checkDeptNameUnique(SysDept dept);
2018-07-09 08:44:52 +08:00
}