linwe
2023-12-23 55d677758efadb6d42e6d4e595cecc2c50c20d5a
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>