XiaoRuby
2023-08-25 b0b77110b22827d453e9a1580906b3f53add19f9
standard-server/src/main/resources/mapper/OrganizationalMapper.xml
@@ -9,7 +9,10 @@
    </resultMap>
    <select id="OrganizationalTree" resultMap="OrganizationalMap">
        SELECT o.id, o.`department` FROM organizational o where o.`father_id` = #{father_id}
        SELECT o.id, o.`department`
        FROM organizational o
        where o.`father_id` = #{father_id}
        and o.state = 1
    </select>
    <select id="getDepartmentListTable" resultType="map">
@@ -18,4 +21,10 @@
        WHERE o.`father_id` = #{departmentId}
          AND o.`state` = 1
    </select>
    <select id="deleteDepartment">
        update lims_laboratory.organizational
        set state=0
        where id in (${ids})
    </select>
</mapper>