<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HROMHIERARCHYCATID`, t1.`OMHIERARCHYID`, t1.`OMHIERARCHYNAME`, t1.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POMHIERARCHYID`, t11.`OMHIERARCHYNAME` AS `POMHIERARCHYNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `OMHIERARCHY` t1 LEFT JOIN OMHIERARCHY t11 ON t1.POMHIERARCHYID = t11.OMHIERARCHYID LEFT JOIN ORGANIZATION t21 ON t1.ORGANIZATIONID = t21.ORGANIZATIONID ) t1 where omhierarchyid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HROMHIERARCHYCATID`, t31.`OMHIERARCHYCATNAME` AS `HROMHIERARCHYCATNAME`, t1.`OMHIERARCHYID`, t1.`OMHIERARCHYNAME`, t1.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POMHIERARCHYID`, t11.`OMHIERARCHYNAME` AS `POMHIERARCHYNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `OMHIERARCHY` t1 LEFT JOIN OMHIERARCHY t11 ON t1.POMHIERARCHYID = t11.OMHIERARCHYID LEFT JOIN ORGANIZATION t21 ON t1.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN OMHIERARCHYCAT t31 ON t1.HROMHIERARCHYCATID = t31.OMHIERARCHYCATID ) t1 where omhierarchyid=#{id}]]>