fujunling
2023-07-05 43b449343715b398b9e1222b93d83f50f8e8e19e
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml
@@ -126,6 +126,9 @@
                    <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>
@@ -194,9 +197,8 @@
                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>