<![CDATA[select t1.* from (SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_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 LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.SURVEY_ID, t161.TITLE AS SURVEY_TITLE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_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 LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN SURVEY_SURVEY t161 ON t1.SURVEY_ID = t161.ID ) t1 where id=#{id}]]>
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.STATE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_ID, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_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 LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.STATE, t1.SURVEY_ID, t161.TITLE AS SURVEY_TITLE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_ID, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_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 LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN SURVEY_SURVEY t161 ON t1.SURVEY_ID = t161.ID
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_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 LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.SURVEY_ID, t161.TITLE AS SURVEY_TITLE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_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 LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN SURVEY_SURVEY t161 ON t1.SURVEY_ID = t161.ID
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_users-searchActive-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_users-searchActive-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_users-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")