mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-18 17:26:39 +08:00
42 lines
1016 B
Java
42 lines
1016 B
Java
package com.ruoyi.system.mapper;
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysDept;
|
|
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 部门管理 数据层
|
|
*
|
|
* @author Lion Li
|
|
*/
|
|
public interface SysDeptMapper extends BaseMapperPlus<SysDept> {
|
|
|
|
/**
|
|
* 查询部门管理数据
|
|
*
|
|
* @param dept 部门信息
|
|
* @return 部门信息集合
|
|
*/
|
|
List<SysDept> selectDeptList(SysDept dept);
|
|
|
|
/**
|
|
* 根据角色ID查询部门树信息
|
|
*
|
|
* @param roleId 角色ID
|
|
* @param deptCheckStrictly 部门树选择项是否关联显示
|
|
* @return 选中部门列表
|
|
*/
|
|
List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
|
|
|
/**
|
|
* 修改子元素关系
|
|
*
|
|
* @param depts 子元素
|
|
* @return 结果
|
|
*/
|
|
int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
|
|
|
}
|