<![CDATA[select t1.* from (SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_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 RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_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 RES_PARTNER t111 ON t1.NAME = t111.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.PURCHASE_REQUISITION_LINE_ID, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_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 RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_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 RES_PARTNER t111 ON t1.NAME = t111.ID ) t1 where id=#{id}]]>
<![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_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 RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_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 RES_PARTNER t111 ON t1.NAME = t111.ID
<![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.PURCHASE_REQUISITION_LINE_ID, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_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 RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_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 RES_PARTNER t111 ON t1.NAME = t111.ID
]]>
]]>
</sql>
</sql>
<!--数据查询[View]-->
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_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 RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_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 RES_PARTNER t111 ON t1.NAME = t111.ID
<![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.PURCHASE_REQUISITION_LINE_ID, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_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 RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_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 RES_PARTNER t111 ON t1.NAME = t111.ID