zxl
2025-03-14 23b688e436a89845e92d861adb5875e625e90d9f
system/src/main/java/com/ycl/system/mapper/SysDeptMapper.java
@@ -19,6 +19,8 @@
     */
    public List<SysDept> selectDeptList(SysDept dept);
    public List<SysDept> selectDeptListNoAuth(SysDept dept);
    /**
     * 根据角色ID查询部门树信息
     *
@@ -35,6 +37,8 @@
     * @return 部门信息
     */
    public SysDept selectDeptById(Long deptId);
    List<SysDept> selectDeptByIds(@Param("deptIds") List<Long> deptIds);
    /**
     * 根据ID查询所有子部门
@@ -115,4 +119,16 @@
     * @return 结果
     */
    public int deleteDeptById(Long deptId);
    String selectAncestors(Long userId);
    Long selectByName(@Param("name") String projectOwnerUnit);
    /**
     * 获取某部门的子部门
     * @param deptId
     * @return
     */
    List<Long> getChildIds(@Param("deptId") Long deptId);
}