<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]-->
<!--数据查询[Default]-->
<sqlid="Default"databaseId="postgresql">
<sqlid="Default"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.ID, t1.MANAGER_ID, t41.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.PARENT_ID, t71.NAME AS PARENT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_DEPARTMENT t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN HR_EMPLOYEE t31 ON t1.MANAGER_ID = t31.ID LEFT JOIN RESOURCE_RESOURCE t41 ON t31.RESOURCE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.PARENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
<![CDATA[ SELECT t1.ACTIVE, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.ID, t1.MANAGER_ID, t41.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.PARENT_ID, t71.NAME AS PARENT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_DEPARTMENT t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN HR_EMPLOYEE t31 ON t1.MANAGER_ID = t31.ID LEFT JOIN RESOURCE_RESOURCE t41 ON t31.RESOURCE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.PARENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
]]>
]]>
</sql>
</sql>
<!--数据查询[ROOT]-->
<sqlid="ROOT"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.ID, t1.MANAGER_ID, t41.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.PARENT_ID, t71.NAME AS PARENT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_DEPARTMENT t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN HR_EMPLOYEE t31 ON t1.MANAGER_ID = t31.ID LEFT JOIN RESOURCE_RESOURCE t41 ON t31.RESOURCE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.PARENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
WHERE ( t1.PARENT_ID IS NULL )
]]>
</sql>
<!--数据查询[View]-->
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.ID, t1.MANAGER_ID, t41.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NOTE, t1.PARENT_ID, t71.NAME AS PARENT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_DEPARTMENT t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN HR_EMPLOYEE t31 ON t1.MANAGER_ID = t31.ID LEFT JOIN RESOURCE_RESOURCE t41 ON t31.RESOURCE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.PARENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
<![CDATA[ SELECT t1.ACTIVE, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.ID, t1.MANAGER_ID, t41.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NOTE, t1.PARENT_ID, t71.NAME AS PARENT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_DEPARTMENT t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN HR_EMPLOYEE t31 ON t1.MANAGER_ID = t31.ID LEFT JOIN RESOURCE_RESOURCE t41 ON t31.RESOURCE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.PARENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_NAME, t1.ID, t1.SKILL_ID, t1.SKILL_LEVEL_ID, t51.NAME AS SKILL_LEVEL_NAME, t41.NAME AS SKILL_NAME, t1.SKILL_TYPE_ID, t31.NAME AS SKILL_TYPE_NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_EMPLOYEE_SKILL t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_SKILL_TYPE t31 ON t1.SKILL_TYPE_ID = t31.ID LEFT JOIN HR_SKILL t41 ON t1.SKILL_ID = t41.ID LEFT JOIN HR_SKILL_LEVEL t51 ON t1.SKILL_LEVEL_ID = t51.ID ) t1 where id=#{id}]]>
<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="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_NAME, t1.ID, t1.SKILL_ID, t1.SKILL_LEVEL_ID, t51.NAME AS SKILL_LEVEL_NAME, t41.NAME AS SKILL_NAME, t1.SKILL_TYPE_ID, t31.NAME AS SKILL_TYPE_NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_EMPLOYEE_SKILL t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_SKILL_TYPE t31 ON t1.SKILL_TYPE_ID = t31.ID LEFT JOIN HR_SKILL t41 ON t1.SKILL_ID = t41.ID LEFT JOIN HR_SKILL_LEVEL t51 ON t1.SKILL_LEVEL_ID = t51.ID
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_NAME, t1.ID, t1.SKILL_ID, t1.SKILL_LEVEL_ID, t51.NAME AS SKILL_LEVEL_NAME, t41.NAME AS SKILL_NAME, t1.SKILL_TYPE_ID, t31.NAME AS SKILL_TYPE_NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_EMPLOYEE_SKILL t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_SKILL_TYPE t31 ON t1.SKILL_TYPE_ID = t31.ID LEFT JOIN HR_SKILL t41 ON t1.SKILL_ID = t41.ID LEFT JOIN HR_SKILL_LEVEL t51 ON t1.SKILL_LEVEL_ID = t51.ID
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.DATE_END, t1.DATE_START, t1.DISPLAY_TYPE, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.LINE_TYPE_ID, t31.NAME AS LINE_TYPE_ID_TEXT, t1.NAME, t1.WRITE_DATE FROM HR_RESUME_LINE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_RESUME_LINE_TYPE t31 ON t1.LINE_TYPE_ID = t31.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.DATE_END, t1.DATE_START, t1.DISPLAY_TYPE, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.LINE_TYPE_ID, t31.NAME AS LINE_TYPE_ID_TEXT, t1.NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_RESUME_LINE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_RESUME_LINE_TYPE t31 ON t1.LINE_TYPE_ID = t31.ID ) t1 where id=#{id}]]>
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.DATE_END, t1.DATE_START, t1.DISPLAY_TYPE, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.LINE_TYPE_ID, t31.NAME AS LINE_TYPE_ID_TEXT, t1.NAME, t1.WRITE_DATE FROM HR_RESUME_LINE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_RESUME_LINE_TYPE t31 ON t1.LINE_TYPE_ID = t31.ID
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.DATE_END, t1.DATE_START, t1.DISPLAY_TYPE, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.LINE_TYPE_ID, t31.NAME AS LINE_TYPE_ID_TEXT, t1.NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_RESUME_LINE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_RESUME_LINE_TYPE t31 ON t1.LINE_TYPE_ID = t31.ID
]]>
]]>
</sql>
</sql>
<!--数据查询[View]-->
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.DATE_END, t1.DATE_START, t1.DISPLAY_TYPE, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.LINE_TYPE_ID, t31.NAME AS LINE_TYPE_ID_TEXT, t1.NAME, t1.WRITE_DATE FROM HR_RESUME_LINE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_RESUME_LINE_TYPE t31 ON t1.LINE_TYPE_ID = t31.ID
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.DATE_END, t1.DATE_START, t1.DISPLAY_TYPE, t1.EMPLOYEE_ID, t21.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.LINE_TYPE_ID, t31.NAME AS LINE_TYPE_ID_TEXT, t1.NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_RESUME_LINE t1 LEFT JOIN HR_EMPLOYEE t11 ON t1.EMPLOYEE_ID = t11.ID LEFT JOIN RESOURCE_RESOURCE t21 ON t11.RESOURCE_ID = t21.ID LEFT JOIN HR_RESUME_LINE_TYPE t31 ON t1.LINE_TYPE_ID = t31.ID
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.ID, t1.NAME, t1.SKILL_TYPE_ID, t11.NAME AS SKILL_TYPE_NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_SKILL t1 LEFT JOIN HR_SKILL_TYPE t11 ON t1.SKILL_TYPE_ID = t11.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t1.ID, t1.NAME, t1.SKILL_TYPE_ID, t11.NAME AS SKILL_TYPE_NAME, t1.WRITE_DATE, t1.WRITE_UID FROM HR_SKILL_LEVEL t1 LEFT JOIN HR_SKILL_TYPE t11 ON t1.SKILL_TYPE_ID = t11.ID ) t1 where id=#{id}]]>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Hr_department-searchROOT-all') and hasPermission(#context,'iBizBusinessCentral-Hr_department-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Hr_department-searchROOT-all') and hasPermission(#context,'iBizBusinessCentral-Hr_department-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_company-searchROOT-all') and hasPermission(#context,'iBizBusinessCentral-Res_company-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_company-searchROOT-all') and hasPermission(#context,'iBizBusinessCentral-Res_company-Get')")