<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.ADVANTAGES, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t31.CURRENCY_ID, t1.DATE_END, t1.DATE_START, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t111.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOB_ID, t81.NAME AS JOB_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NOTES, t51.PERMIT_NO, t1.REPORTED_TO_SECRETARIAT, t1.RESOURCE_CALENDAR_ID, t61.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.STATE, t1.TRIAL_DATE_END, t1.TYPE_ID, t121.NAME AS TYPE_ID_TEXT, t51.VISA_EXPIRE, t51.VISA_NO, t1.WAGE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN HR_EMPLOYEE t51 ON t1.EMPLOYEE_ID = t51.ID LEFT JOIN RESOURCE_CALENDAR t61 ON t1.RESOURCE_CALENDAR_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN HR_JOB t81 ON t1.JOB_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RESOURCE_RESOURCE t111 ON t51.RESOURCE_ID = t111.ID LEFT JOIN HR_CONTRACT_TYPE t121 ON t1.TYPE_ID = t121.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.ADVANTAGES, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t31.CURRENCY_ID, t1.DATE_END, t1.DATE_START, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t111.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOB_ID, t81.NAME AS JOB_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NOTES, t51.PERMIT_NO, t1.RESOURCE_CALENDAR_ID, t61.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.STATE, t1.TRIAL_DATE_END, t51.VISA_EXPIRE, t51.VISA_NO, t1.WAGE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN HR_EMPLOYEE t51 ON t1.EMPLOYEE_ID = t51.ID LEFT JOIN RESOURCE_CALENDAR t61 ON t1.RESOURCE_CALENDAR_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN HR_JOB t81 ON t1.JOB_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RESOURCE_RESOURCE t111 ON t51.RESOURCE_ID = t111.ID ) t1 where id=#{id}]]>
<![CDATA[ SELECT t1.ACTIVE, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t31.CURRENCY_ID, t1.DATE_END, t1.DATE_START, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t111.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOB_ID, t81.NAME AS JOB_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t51.PERMIT_NO, t1.REPORTED_TO_SECRETARIAT, t1.RESOURCE_CALENDAR_ID, t61.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.STATE, t1.TRIAL_DATE_END, t1.TYPE_ID, t121.NAME AS TYPE_ID_TEXT, t51.VISA_EXPIRE, t51.VISA_NO, t1.WAGE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN HR_EMPLOYEE t51 ON t1.EMPLOYEE_ID = t51.ID LEFT JOIN RESOURCE_CALENDAR t61 ON t1.RESOURCE_CALENDAR_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN HR_JOB t81 ON t1.JOB_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RESOURCE_RESOURCE t111 ON t51.RESOURCE_ID = t111.ID LEFT JOIN HR_CONTRACT_TYPE t121 ON t1.TYPE_ID = t121.ID
<![CDATA[ SELECT t1.ACTIVE, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t31.CURRENCY_ID, t1.DATE_END, t1.DATE_START, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t111.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOB_ID, t81.NAME AS JOB_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t51.PERMIT_NO, t1.RESOURCE_CALENDAR_ID, t61.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.STATE, t1.TRIAL_DATE_END, t51.VISA_EXPIRE, t51.VISA_NO, t1.WAGE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN HR_EMPLOYEE t51 ON t1.EMPLOYEE_ID = t51.ID LEFT JOIN RESOURCE_CALENDAR t61 ON t1.RESOURCE_CALENDAR_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN HR_JOB t81 ON t1.JOB_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RESOURCE_RESOURCE t111 ON t51.RESOURCE_ID = t111.ID
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.ADVANTAGES, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t31.CURRENCY_ID, t1.DATE_END, t1.DATE_START, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t111.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOB_ID, t81.NAME AS JOB_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NOTES, t51.PERMIT_NO, t1.REPORTED_TO_SECRETARIAT, t1.RESOURCE_CALENDAR_ID, t61.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.STATE, t1.TRIAL_DATE_END, t1.TYPE_ID, t121.NAME AS TYPE_ID_TEXT, t51.VISA_EXPIRE, t51.VISA_NO, t1.WAGE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN HR_EMPLOYEE t51 ON t1.EMPLOYEE_ID = t51.ID LEFT JOIN RESOURCE_CALENDAR t61 ON t1.RESOURCE_CALENDAR_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN HR_JOB t81 ON t1.JOB_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RESOURCE_RESOURCE t111 ON t51.RESOURCE_ID = t111.ID LEFT JOIN HR_CONTRACT_TYPE t121 ON t1.TYPE_ID = t121.ID
<![CDATA[ SELECT t1.ACTIVE, t1.ADVANTAGES, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t31.CURRENCY_ID, t1.DATE_END, t1.DATE_START, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t111.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOB_ID, t81.NAME AS JOB_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NOTES, t51.PERMIT_NO, t1.RESOURCE_CALENDAR_ID, t61.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.STATE, t1.TRIAL_DATE_END, t51.VISA_EXPIRE, t51.VISA_NO, t1.WAGE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN HR_EMPLOYEE t51 ON t1.EMPLOYEE_ID = t51.ID LEFT JOIN RESOURCE_CALENDAR t61 ON t1.RESOURCE_CALENDAR_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN HR_JOB t81 ON t1.JOB_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RESOURCE_RESOURCE t111 ON t51.RESOURCE_ID = t111.ID
@@ -137,7 +137,7 @@ public class Hr_contractResource {
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Hr_contract-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Hr_contract-Get')")
@@ -150,7 +150,7 @@ public class Hr_contractResource {
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Hr_contract-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Hr_contract-Get')")