| | |
| | | </select> |
| | | |
| | | <select id="selectAllLevelParentByOid" resultType="java.util.HashMap"> |
| | | select oid, |
| | | level from pl_code_classify start with oid= #{oid} connect by prior PARENTCODECLASSIFYOID = oid |
| | | select b.oid as oid,level from |
| | | pl_code_classify b |
| | | join (select oid |
| | | from pl_code_classify |
| | | start with oid = #{oid} |
| | | connect by oid = prior PARENTCODECLASSIFYOID) a on b.oid = a.OID |
| | | start with b.PARENTCODECLASSIFYOID is null |
| | | connect by prior b.oid = b.PARENTCODECLASSIFYOID |
| | | </select> |
| | | |
| | | <select id="getIdPathToNamePathByParentId" resultMap="plCodeClassifyResultMap"> |