<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.AUTO_APPLY, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_GROUP_ID, t31.NAME AS COUNTRY_GROUP_ID_TEXT, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.NOTE, t1.SEQUENCE, t1.VAT_REQUIRED, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT, t1.ZIP_FROM, t1.ZIP_TO FROM ACCOUNT_FISCAL_POSITION 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_COUNTRY_GROUP t31 ON t1.COUNTRY_GROUP_ID = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_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 ) t1 where id=#{id}]]>
<where><iftest="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sqlid="Default"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.AUTO_APPLY, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_GROUP_ID, t31.NAME AS COUNTRY_GROUP_ID_TEXT, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.SEQUENCE, t1.VAT_REQUIRED, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT, t1.ZIP_FROM, t1.ZIP_TO FROM ACCOUNT_FISCAL_POSITION 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_COUNTRY_GROUP t31 ON t1.COUNTRY_GROUP_ID = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_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
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.AUTO_APPLY, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.COUNTRY_GROUP_ID, t31.NAME AS COUNTRY_GROUP_ID_TEXT, t1.COUNTRY_ID, t61.NAME AS COUNTRY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.NOTE, t1.SEQUENCE, t1.VAT_REQUIRED, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT, t1.ZIP_FROM, t1.ZIP_TO FROM ACCOUNT_FISCAL_POSITION 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_COUNTRY_GROUP t31 ON t1.COUNTRY_GROUP_ID = t31.ID LEFT JOIN RES_COMPANY t41 ON t1.COMPANY_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_COUNTRY t61 ON t1.COUNTRY_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
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.CODE, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INCOTERMS t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = 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 ) t1 where id=#{id}]]>
<where><iftest="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sqlid="Default"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.CODE, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INCOTERMS t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = 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
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.CODE, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INCOTERMS t1 LEFT JOIN RES_USERS t11 ON t1.WRITE_UID = 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
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.BARCODE, t1.CODE, t1.COLOR, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.DEFAULT_LOCATION_DEST_ID, t61.NAME AS DEFAULT_LOCATION_DEST_ID_TEXT, t1.DEFAULT_LOCATION_SRC_ID, t31.NAME AS DEFAULT_LOCATION_SRC_ID_TEXT, t1.ID, t1.NAME, t1.RETURN_PICKING_TYPE_ID, t41.NAME AS RETURN_PICKING_TYPE_ID_TEXT, t1.SEQUENCE, t1.SEQUENCE_ID, t1.SHOW_ENTIRE_PACKS, t1.SHOW_OPERATIONS, t1.SHOW_RESERVED, t1.USE_CREATE_LOTS, t1.USE_EXISTING_LOTS, t1.WAREHOUSE_ID, t51.NAME AS WAREHOUSE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_PICKING_TYPE 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 STOCK_LOCATION t31 ON t1.DEFAULT_LOCATION_SRC_ID = t31.ID LEFT JOIN STOCK_PICKING_TYPE t41 ON t1.RETURN_PICKING_TYPE_ID = t41.ID LEFT JOIN STOCK_WAREHOUSE t51 ON t1.WAREHOUSE_ID = t51.ID LEFT JOIN STOCK_LOCATION t61 ON t1.DEFAULT_LOCATION_DEST_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 ) t1 where id=#{id}]]>
<where><iftest="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sqlid="Default"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.CODE, t1.COLOR, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.DEFAULT_LOCATION_DEST_ID, t61.NAME AS DEFAULT_LOCATION_DEST_ID_TEXT, t1.DEFAULT_LOCATION_SRC_ID, t31.NAME AS DEFAULT_LOCATION_SRC_ID_TEXT, t1.ID, t1.NAME, t1.RETURN_PICKING_TYPE_ID, t41.NAME AS RETURN_PICKING_TYPE_ID_TEXT, t1.SEQUENCE, t1.SEQUENCE_ID, t1.SHOW_ENTIRE_PACKS, t1.SHOW_OPERATIONS, t1.SHOW_RESERVED, t1.USE_CREATE_LOTS, t1.USE_EXISTING_LOTS, t1.WAREHOUSE_ID, t51.NAME AS WAREHOUSE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_PICKING_TYPE 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 STOCK_LOCATION t31 ON t1.DEFAULT_LOCATION_SRC_ID = t31.ID LEFT JOIN STOCK_PICKING_TYPE t41 ON t1.RETURN_PICKING_TYPE_ID = t41.ID LEFT JOIN STOCK_WAREHOUSE t51 ON t1.WAREHOUSE_ID = t51.ID LEFT JOIN STOCK_LOCATION t61 ON t1.DEFAULT_LOCATION_DEST_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
]]>
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.CODE, t1.COLOR, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.DEFAULT_LOCATION_DEST_ID, t61.NAME AS DEFAULT_LOCATION_DEST_ID_TEXT, t1.DEFAULT_LOCATION_SRC_ID, t31.NAME AS DEFAULT_LOCATION_SRC_ID_TEXT, t1.ID, t1.NAME, t1.RETURN_PICKING_TYPE_ID, t41.NAME AS RETURN_PICKING_TYPE_ID_TEXT, t1.SEQUENCE, t1.SEQUENCE_ID, t1.SHOW_ENTIRE_PACKS, t1.SHOW_OPERATIONS, t1.SHOW_RESERVED, t1.USE_CREATE_LOTS, t1.USE_EXISTING_LOTS, t1.WAREHOUSE_ID, t51.NAME AS WAREHOUSE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_PICKING_TYPE 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 STOCK_LOCATION t31 ON t1.DEFAULT_LOCATION_SRC_ID = t31.ID LEFT JOIN STOCK_PICKING_TYPE t41 ON t1.RETURN_PICKING_TYPE_ID = t41.ID LEFT JOIN STOCK_WAREHOUSE t51 ON t1.WAREHOUSE_ID = t51.ID LEFT JOIN STOCK_LOCATION t61 ON t1.DEFAULT_LOCATION_DEST_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
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_fiscal_position-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Account_fiscal_position-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_fiscal_position-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Account_fiscal_position-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_incoterms-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Account_incoterms-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_incoterms-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Account_incoterms-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Stock_picking_type-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Stock_picking_type-Get')")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Stock_picking_type-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Stock_picking_type-Get')")