XiaoRuby
2023-08-24 fc72c9174c705d3b2d7e40e687c04e348bfe098f
standard-server/src/main/resources/mapper/OrganizationalMapper.xml
@@ -11,4 +11,11 @@
    <select id="OrganizationalTree" resultMap="OrganizationalMap">
        SELECT o.id, o.`department` FROM organizational o where o.`father_id` = #{father_id}
    </select>
    <select id="getDepartmentListTable" resultType="map">
        SELECT o.`id`, o.`department`
        FROM organizational o
        WHERE o.`father_id` = #{departmentId}
          AND o.`state` = 1
    </select>
</mapper>