zhongrj
2023-12-23 2bd69d1dca40d2fdf07f72e0117d2f0febde5359
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>