liusuyi
2024-07-23 811b14aa5cd2bd6d4313b43dc38ce87cd938f3b0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
@@ -1,6 +1,8 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.core.domain.entity.SysDept;
@@ -9,7 +11,7 @@
 * 
 * @author ruoyi
 */
public interface SysDeptMapper
public interface SysDeptMapper extends BaseMapper<SysDept>
{
    /**
     * 查询部门管理数据
@@ -43,6 +45,13 @@
     * @return 部门列表
     */
    public List<SysDept> selectChildrenDeptById(Long deptId);
    /**
     * 根据ID查询下级子部门
     *
     * @param deptId 部门ID
     * @return 部门列表
     */
    public List<SysDept> selectNextChildrenDeptById(Long deptId);
    /**
     * 根据ID查询所有子部门(正常状态)
@@ -115,4 +124,14 @@
     * @return 结果
     */
    public int deleteDeptById(Long deptId);
    public List<Long> getChildrenDeptIdList(@Param("deptIdList")List<Long> deptIdList);
    public List<Long> selectDeptIdBySub(Long deptId);
    public List<Long> selectRoleDeptIdByUsersId(String usersId);
    public List<SysDept> getParentsDeptListByDeptId(Long deptId);
    public List<SysDept> selectNextChildrenDeptByIdAndInList(@Param("deptId")Long deptId,@Param("deptIdList")List<Long> deptIdList);
}