| | |
| | | |
| | | |
| | | |
| | | <select id="selectChildHasReleaseTemplate" resultType="list"> |
| | | <select id="selectChildHasReleaseTemplate" resultType="map"> |
| | | select t.oid as oid, cls.oid as clsoid |
| | | from platformbtm_codeclstemplate t |
| | | from pl_code_clstemplate t |
| | | left join (select oid |
| | | from platformbtm_codeclassify |
| | | from pl_code_classify |
| | | where lcstatus = #{lcstatus} |
| | | start with oid = #{classifyoid} |
| | | connect by prior oid = parentcodeclassifyoid) cls |
| | | on t.codeclassifyoid = cls.oid |
| | | where t.lcstatus = #{templatelcstatus} |
| | | where t.lastr=1 and t.lastv=1 and t.lcstatus = #{templatelcstatus} |
| | | and cls.oid is not null |
| | | </select> |
| | | |