yuxc
2023-04-21 35a36f60cdbd9ef3bf2ab7be9f418f988c93c5eb
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeCLassifyMapper.xml
@@ -87,12 +87,11 @@
                           on codeclassify0.codeKeyAttrRepeatOid = codekeyattrrepeatoid.oid
                 left join pl_code_resemblerule coderesembleruleoid
                           on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid
        where
        <where>
            <if test="oid != null and oid != ''">
                codeclassify0.parentcodeclassifyoid = #{oid}
                codeclassify0.parentcodeclassifyoid = '${oid}'
            </if>
            <if test="oid = null or oid = ''">
            <if test="oid = null">
                codeclassify0.parentcodeclassifyoid is null
            </if>
        </where>
@@ -132,14 +131,12 @@
                 left join pl_code_resemblerule coderesembleruleoid
                           on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid
            START WITH
        <where>
            <if test="oid != null and oid != ''">
                codeclassify0.parentCodeClassifyOid = #{oid}
            <if test="oid != null ">
                codeclassify0.parentCodeClassifyOid = '${oid}'
            </if>
            <if test="oid = null or oid = ''">
            <if test="oid = null ">
                codeclassify0.parentCodeClassifyOid is null
            </if>
        </where>
        CONNECT BY PRIOR codeclassify0.OID = codeclassify0.parentCodeClassifyOid
    </select>