<![CDATA[select t1.* from (SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.LAST_TIME_ENTRIES_CHECKED, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_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 ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_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 ) t1 where id=#{id}]]>
<![CDATA[ SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.LAST_TIME_ENTRIES_CHECKED, t1.NAME, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_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.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.NAME, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_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>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.LAST_TIME_ENTRIES_CHECKED, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_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.CODE, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t41.NAME AS CURRENCY_ID_TEXT, t1.DEPRECATED, t1.GROUP_ID, t51.NAME AS GROUP_ID_TEXT, t1.ID, t11.INTERNAL_GROUP, t11.TYPE AS INTERNAL_TYPE, t1.NAME, t1.NOTE, t1.RECONCILE, t1.USER_TYPE_ID, t11.NAME AS USER_TYPE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM ACCOUNT_ACCOUNT t1 LEFT JOIN ACCOUNT_ACCOUNT_TYPE t11 ON t1.USER_TYPE_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.CREATE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_CURRENCY t41 ON t1.CURRENCY_ID = t41.ID LEFT JOIN ACCOUNT_GROUP t51 ON t1.GROUP_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.WRITE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_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