| | |
| | | platformbtm_codeclassify.name as c__name, |
| | | COUNT(*) OVER () "##VCI_COUNT_VCI##" |
| | | from PL_CODE_BASICSEC |
| | | left join PL_CODE_BASICSEC btm_codebasicsec_1 |
| | | on btm_codebasicsec_1.oid = PL_CODE_BASICSEC.parentclassifysecoid |
| | | left join PL_CODE_BASICSEC platformbtm_codeclassify |
| | | on platformbtm_codeclassify.oid = PL_CODE_BASICSEC.refercodeclassifyoid |
| | | left join pl_code_basicsec btm_codebasicsec_1 |
| | | on btm_codebasicsec_1.oid = PL_CODE_BASICSEC.parentclassifysecoid |
| | | left join pl_code_classify platformbtm_codeclassify |
| | | on platformbtm_codeclassify.oid = PL_CODE_BASICSEC.refercodeclassifyoid |
| | | <where> |
| | | <if test="codeBasicSec.oid != null and codeBasicSec.oid != ''"> |
| | | and PL_CODE_BASICSEC.OID = #{codeBasicSec.oid} |
| | |
| | | <if test="codeBasicSec.copyFromVersion != null and codeBasicSec.copyFromVersion != ''"> |
| | | and PL_CODE_BASICSEC.COPYFROMVERSION = #{codeBasicSec.copyFromVersion} |
| | | </if> |
| | | <if test="codeBasicSec.sectype != null and codeBasicSec.sectype != ''"> |
| | | <if test="codeBasicSec.secType != null and codeBasicSec.sectype != ''"> |
| | | and PL_CODE_BASICSEC.SECTYPE = #{codeBasicSec.sectype} |
| | | </if> |
| | | <if test="codeBasicSec.pkCodeRule != null and codeBasicSec.pkCodeRule != ''"> |
| | |
| | | |
| | | <select id="getOidByCodeclassifysecOid" resultType="java.lang.String"> |
| | | SELECT OID |
| | | FROM PLATFORMBTM_CODEBASICSEC |
| | | START WITH OID = #{codeClassifySecOid} CONNECT BY PRIOR PARENTCLASSIFYSECOID = OID |
| | | FROM PLATFORMBTM_CODEBASICSEC START WITH OID = #{codeClassifySecOid} |
| | | CONNECT BY PRIOR PARENTCLASSIFYSECOID = OID |
| | | </select> |
| | | |
| | | |