| | |
| | | package com.ruoyi.project.system.mapper;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import com.ruoyi.project.system.domain.SysDept;
|
| | |
|
| | |
| | | * @param deptCheckStrictly 部门树选择项是否关联显示
|
| | | * @return 选中部门列表
|
| | | */
|
| | | public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
| | | public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
| | |
|
| | | /**
|
| | | * 根据部门ID查询信息
|
| | |
| | | * @param dept 部门信息
|
| | | * @return 结果
|
| | | */
|
| | | @InterceptorIgnore(tenantLine = "true")
|
| | | public int insertDept(SysDept dept);
|
| | |
|
| | | /**
|
| | |
| | | * @param dept 部门信息
|
| | | * @return 结果
|
| | | */
|
| | | @InterceptorIgnore(tenantLine = "true")
|
| | | public int updateDept(SysDept dept);
|
| | |
|
| | | /**
|
| | |
| | | *
|
| | | * @param deptIds 部门ID组
|
| | | */
|
| | | @InterceptorIgnore(tenantLine = "true")
|
| | | public void updateDeptStatusNormal(Long[] deptIds);
|
| | |
|
| | | /**
|
| | |
| | | * @param depts 子元素
|
| | | * @return 结果
|
| | | */
|
| | | @InterceptorIgnore(tenantLine = "true")
|
| | | public int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
| | |
|
| | | /**
|
| | |
| | | * @param deptId 部门ID
|
| | | * @return 结果
|
| | | */
|
| | | @InterceptorIgnore(tenantLine = "true")
|
| | | public int deleteDeptById(Long deptId);
|
| | |
|
| | | /**
|
| | | * 查询顶层部门id
|
| | | * @param deptId
|
| | | * @return
|
| | | */
|
| | | Long maxLevelDeptId(Long deptId);
|
| | |
|
| | | SysDept selectDeptByDeptName(@Param("deptName") String deptName);
|
| | | }
|