<where><iftest="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sqlid="Default"databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HROMHIERARCHYCATID`, t41.`OMHIERARCHYCATNAME` AS `HROMHIERARCHYCATNAME`, t1.`OMHIERARCHYID`, t1.`OMHIERARCHYNAME`, t1.`ORGANIZATIONID`, t31.`ORGANIZATIONNAME`, t1.`POMHIERARCHYID`, t21.`ORGANIZATIONNAME` AS `POMHIERARCHYNAME`, t31.`SHORTNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `OMHIERARCHY` t1 LEFT JOIN OMHIERARCHY t11 ON t1.POMHIERARCHYID = t11.OMHIERARCHYID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t1.ORGANIZATIONID = t31.ORGANIZATIONID LEFT JOIN OMHIERARCHYCAT t41 ON t1.HROMHIERARCHYCATID = t41.OMHIERARCHYCATID
]]>
</sql>
<!--数据查询[RootOrg]-->
<sqlid="RootOrg"databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HROMHIERARCHYCATID`, t41.`OMHIERARCHYCATNAME` AS `HROMHIERARCHYCATNAME`, t1.`OMHIERARCHYID`, t1.`OMHIERARCHYNAME`, t1.`ORGANIZATIONID`, t31.`ORGANIZATIONNAME`, t1.`POMHIERARCHYID`, t21.`ORGANIZATIONNAME` AS `POMHIERARCHYNAME`, t31.`SHORTNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `OMHIERARCHY` t1 LEFT JOIN OMHIERARCHY t11 ON t1.POMHIERARCHYID = t11.OMHIERARCHYID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t1.ORGANIZATIONID = t31.ORGANIZATIONID LEFT JOIN OMHIERARCHYCAT t41 ON t1.HROMHIERARCHYCATID = t41.OMHIERARCHYCATID
WHERE ( t1.`POMHIERARCHYID` IS NULL )
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HROMHIERARCHYCATID`, t41.`OMHIERARCHYCATNAME` AS `HROMHIERARCHYCATNAME`, t1.`OMHIERARCHYID`, t1.`OMHIERARCHYNAME`, t1.`ORGANIZATIONID`, t31.`ORGANIZATIONNAME`, t1.`POMHIERARCHYID`, t21.`ORGANIZATIONNAME` AS `POMHIERARCHYNAME`, t31.`SHORTNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `OMHIERARCHY` t1 LEFT JOIN OMHIERARCHY t11 ON t1.POMHIERARCHYID = t11.OMHIERARCHYID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t1.ORGANIZATIONID = t31.ORGANIZATIONID LEFT JOIN OMHIERARCHYCAT t41 ON t1.HROMHIERARCHYCATID = t41.OMHIERARCHYCATID
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizHumanResources-HROMHierarchy-searchRootOrg-all') and hasPermission(#context,'iBizHumanResources-HROMHierarchy-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizHumanResources-HROMHierarchy-searchRootOrg-all') and hasPermission(#context,'iBizHumanResources-HROMHierarchy-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizHumanResources-HROMHierarchy-searchRootOrg-all') and hasPermission(#context,'iBizHumanResources-HROMHierarchy-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizHumanResources-HROMHierarchy-searchRootOrg-all') and hasPermission(#context,'iBizHumanResources-HROMHierarchy-Get')")