zhongrj
2023-11-25 69a1b191f02e49b7c8545c3b42744217f0dc6b8e
src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -112,4 +112,12 @@
        and is_deleted = 0
    </select>
    <!--查询当前机构信息-->
    <select id="getDeptById" resultType="org.springblade.modules.system.vo.DeptVO">
        select c.*,p.dept_name as parentName from blade_dept c
        left join blade_dept p on c.parent_id = p.id and p.is_deleted = 0
        where c.is_deleted = 0
        and c.id = #{id}
    </select>
</mapper>