<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t31.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOCATION_ID, t11.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.PARENT_PATH, t1.PARTNER_ID, t71.NAME AS PARTNER_ID_TEXT, t1.POSX, t1.POSY, t1.POSZ, t1.PUTAWAY_STRATEGY_ID, t91.NAME AS PUTAWAY_STRATEGY_ID_TEXT, t1.REMOVAL_STRATEGY_ID, t81.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t121.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t61.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN STOCK_LOCATION t11 ON t1.LOCATION_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = 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 ACCOUNT_ACCOUNT t61 ON t1.VALUATION_OUT_ACCOUNT_ID = t61.ID LEFT JOIN RES_PARTNER t71 ON t1.PARTNER_ID = t71.ID LEFT JOIN PRODUCT_REMOVAL t81 ON t1.REMOVAL_STRATEGY_ID = t81.ID LEFT JOIN PRODUCT_PUTAWAY t91 ON t1.PUTAWAY_STRATEGY_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.WRITE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.VALUATION_IN_ACCOUNT_ID = t121.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PARENT_PATH, t1.POSX, t1.POSY, t1.POSZ, t1.REMOVAL_STRATEGY_ID, t61.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t91.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t51.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.CREATE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT t51 ON t1.VALUATION_OUT_ACCOUNT_ID = t51.ID LEFT JOIN PRODUCT_REMOVAL t61 ON t1.REMOVAL_STRATEGY_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.WRITE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT t91 ON t1.VALUATION_IN_ACCOUNT_ID = t91.ID ) t1 where id=#{id}]]>
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMPANY_ID, t31.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOCATION_ID, t11.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.PARENT_PATH, t1.PARTNER_ID, t71.NAME AS PARTNER_ID_TEXT, t1.POSX, t1.POSY, t1.POSZ, t1.PUTAWAY_STRATEGY_ID, t91.NAME AS PUTAWAY_STRATEGY_ID_TEXT, t1.REMOVAL_STRATEGY_ID, t81.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t121.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t61.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN STOCK_LOCATION t11 ON t1.LOCATION_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = 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 ACCOUNT_ACCOUNT t61 ON t1.VALUATION_OUT_ACCOUNT_ID = t61.ID LEFT JOIN RES_PARTNER t71 ON t1.PARTNER_ID = t71.ID LEFT JOIN PRODUCT_REMOVAL t81 ON t1.REMOVAL_STRATEGY_ID = t81.ID LEFT JOIN PRODUCT_PUTAWAY t91 ON t1.PUTAWAY_STRATEGY_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.WRITE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.VALUATION_IN_ACCOUNT_ID = t121.ID
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PARENT_PATH, t1.POSX, t1.POSY, t1.POSZ, t1.REMOVAL_STRATEGY_ID, t61.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t91.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t51.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.CREATE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT t51 ON t1.VALUATION_OUT_ACCOUNT_ID = t51.ID LEFT JOIN PRODUCT_REMOVAL t61 ON t1.REMOVAL_STRATEGY_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.WRITE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT t91 ON t1.VALUATION_IN_ACCOUNT_ID = t91.ID
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t31.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOCATION_ID, t11.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.PARENT_PATH, t1.PARTNER_ID, t71.NAME AS PARTNER_ID_TEXT, t1.POSX, t1.POSY, t1.POSZ, t1.PUTAWAY_STRATEGY_ID, t91.NAME AS PUTAWAY_STRATEGY_ID_TEXT, t1.REMOVAL_STRATEGY_ID, t81.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t121.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t61.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN STOCK_LOCATION t11 ON t1.LOCATION_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = 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 ACCOUNT_ACCOUNT t61 ON t1.VALUATION_OUT_ACCOUNT_ID = t61.ID LEFT JOIN RES_PARTNER t71 ON t1.PARTNER_ID = t71.ID LEFT JOIN PRODUCT_REMOVAL t81 ON t1.REMOVAL_STRATEGY_ID = t81.ID LEFT JOIN PRODUCT_PUTAWAY t91 ON t1.PUTAWAY_STRATEGY_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.WRITE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.VALUATION_IN_ACCOUNT_ID = t121.ID
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PARENT_PATH, t1.POSX, t1.POSY, t1.POSZ, t1.REMOVAL_STRATEGY_ID, t61.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t91.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t51.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.CREATE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT t51 ON t1.VALUATION_OUT_ACCOUNT_ID = t51.ID LEFT JOIN PRODUCT_REMOVAL t61 ON t1.REMOVAL_STRATEGY_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.WRITE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT t91 ON t1.VALUATION_IN_ACCOUNT_ID = t91.ID