| | |
| | | <when test='fieldInPath=="name"'> |
| | | SYS_CONNECT_BY_PATH(codeclassify0.name, '#') as path |
| | | </when> |
| | | <when test='fieldInPath=="oid"'> |
| | | SYS_CONNECT_BY_PATH(codeclassify0.oid, '#') as path |
| | | </when> |
| | | <otherwise> |
| | | SYS_CONNECT_BY_PATH(codeclassify0.id, '#') as path |
| | | </otherwise> |
| | |
| | | SYS_CONNECT_BY_PATH(name, '#') as namePath, |
| | | SYS_CONNECT_BY_PATH(id, '#') as idPath |
| | | from pl_code_classify plcodeclassify |
| | | START WITH parentCodeClassifyOid is null |
| | | START WITH oid = #{parentId} |
| | | CONNECT BY PRIOR OID = parentCodeClassifyOid) codeclassify0 |
| | | where codeclassify0.paths =#{fieldPath} |
| | | </select> |
| | | |
| | | |