Files
RuoYi/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java

102 lines
2.1 KiB
Java
Raw Normal View History

2018-10-07 14:16:47 +08:00
package com.ruoyi.system.mapper;
2018-07-09 08:44:52 +08:00
import java.util.List;
2018-08-14 11:56:41 +08:00
import org.apache.ibatis.annotations.Param;
2018-10-07 14:16:47 +08:00
import com.ruoyi.system.domain.SysDept;
2018-07-09 08:44:52 +08:00
/**
* 部门管理 数据层
*
* @author ruoyi
*/
2018-10-07 14:16:47 +08:00
public interface SysDeptMapper
2018-07-09 08:44:52 +08:00
{
/**
* 查询部门人数
*
* @param dept 部门信息
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public int selectDeptCount(SysDept dept);
2018-07-09 08:44:52 +08:00
/**
* 查询部门是否存在用户
*
* @param deptId 部门ID
* @return 结果
*/
public int checkDeptExistUser(Long deptId);
/**
* 查询部门管理数据
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 deptId 部门ID
* @return 结果
*/
public int deleteDeptById(Long deptId);
/**
* 新增部门信息
*
* @param dept 部门信息
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public int insertDept(SysDept dept);
2018-07-09 08:44:52 +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
2018-08-14 11:56:41 +08:00
/**
* 修改子元素关系
*
* @param depts 子元素
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public int updateDeptChildren(@Param("depts") List<SysDept> depts);
2018-08-14 11:56:41 +08:00
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);
2018-07-09 08:44:52 +08:00
/**
* 校验部门名称是否唯一
*
* @param deptName 部门名称
2018-09-03 08:45:08 +08:00
* @param parentId 父部门ID
2018-07-09 08:44:52 +08:00
* @return 结果
*/
2018-10-07 14:16:47 +08:00
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
2018-09-03 08:45:08 +08:00
/**
* 根据角色ID查询部门
*
* @param roleId 角色ID
* @return 部门列表
*/
public List<String> selectRoleDeptTree(Long roleId);
2018-12-17 22:32:37 +08:00
/**
* 修改所在部门的父级部门状态
*
* @param dept 部门
*/
public void updateDeptStatus(SysDept dept);
2018-07-09 08:44:52 +08:00
}