提交 5f286a30 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码,后台体系[Spring Boot]

上级 d0033d8a
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_fiscal_position_account_templateMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_fiscal_position_account_templateResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_DEST_ID, t21.NAME AS ACCOUNT_DEST_ID_TEXT, t1.ACCOUNT_SRC_ID, t31.NAME AS ACCOUNT_SRC_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.ID, t1.POSITION_ID, t11.NAME AS POSITION_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM ACCOUNT_FISCAL_POSITION_ACCOUNT_TEMPLATE t1 LEFT JOIN ACCOUNT_FISCAL_POSITION_TEMPLATE t11 ON t1.POSITION_ID = t11.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t21 ON t1.ACCOUNT_DEST_ID = t21.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t31 ON t1.ACCOUNT_SRC_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Account_fiscal_position_account_templateResultMap" type="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_fiscal_position_account_template" autoMapping="true">
......@@ -81,6 +84,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_DEST_ID, t21.NAME AS ACCOUNT_DEST_ID_TEXT, t1.ACCOUNT_SRC_ID, t31.NAME AS ACCOUNT_SRC_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.ID, t1.POSITION_ID, t11.NAME AS POSITION_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM ACCOUNT_FISCAL_POSITION_ACCOUNT_TEMPLATE t1 LEFT JOIN ACCOUNT_FISCAL_POSITION_TEMPLATE t11 ON t1.POSITION_ID = t11.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t21 ON t1.ACCOUNT_DEST_ID = t21.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t31 ON t1.ACCOUNT_SRC_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_DEST_ID, t21.NAME AS ACCOUNT_DEST_ID_TEXT, t1.ACCOUNT_SRC_ID, t31.NAME AS ACCOUNT_SRC_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.ID, t1.POSITION_ID, t11.NAME AS POSITION_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM ACCOUNT_FISCAL_POSITION_ACCOUNT_TEMPLATE t1 LEFT JOIN ACCOUNT_FISCAL_POSITION_TEMPLATE t11 ON t1.POSITION_ID = t11.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t21 ON t1.ACCOUNT_DEST_ID = t21.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t31 ON t1.ACCOUNT_SRC_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_invoice_import_wizardMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_invoice_import_wizardResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.JOURNAL_ID, t51.NAME AS JOURNAL_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INVOICE_IMPORT_WIZARD 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_JOURNAL t51 ON t1.JOURNAL_ID = t51.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Account_invoice_import_wizardResultMap" type="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_invoice_import_wizard" autoMapping="true">
......@@ -60,6 +63,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.JOURNAL_ID, t51.NAME AS JOURNAL_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INVOICE_IMPORT_WIZARD 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_JOURNAL t51 ON t1.JOURNAL_ID = t51.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.JOURNAL_ID, t51.NAME AS JOURNAL_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INVOICE_IMPORT_WIZARD 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_JOURNAL t51 ON t1.JOURNAL_ID = t51.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_reconcile_model_templateMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_reconcile_model_templateResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ID, t51.NAME AS ACCOUNT_ID_TEXT, t1.AMOUNT, t1.AMOUNT_TYPE, t1.AUTO_RECONCILE, t1.CHART_TEMPLATE_ID, t61.NAME AS CHART_TEMPLATE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.FORCE_SECOND_TAX_INCLUDED, t1.FORCE_TAX_INCLUDED, t1.HAS_SECOND_LINE, t1.ID, t1.LABEL, t1.MATCH_AMOUNT, t1.MATCH_AMOUNT_MAX, t1.MATCH_AMOUNT_MIN, t1.MATCH_LABEL, t1.MATCH_LABEL_PARAM, t1.MATCH_NATURE, t1.MATCH_PARTNER, t1.MATCH_SAME_CURRENCY, t1.MATCH_TOTAL_AMOUNT, t1.MATCH_TOTAL_AMOUNT_PARAM, t1.NAME, t1.RULE_TYPE, t1.SECOND_ACCOUNT_ID, t91.NAME AS SECOND_ACCOUNT_ID_TEXT, t1.SECOND_AMOUNT, t1.SECOND_AMOUNT_TYPE, t1.SECOND_LABEL, t1.SECOND_TAX_ID, t41.NAME AS SECOND_TAX_ID_TEXT, t1.SEQUENCE, t1.TAX_ID, t31.NAME AS TAX_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM ACCOUNT_RECONCILE_MODEL_TEMPLATE 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 ACCOUNT_TAX_TEMPLATE t31 ON t1.TAX_ID = t31.ID LEFT JOIN ACCOUNT_TAX_TEMPLATE t41 ON t1.SECOND_TAX_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t51 ON t1.ACCOUNT_ID = t51.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t61 ON t1.CHART_TEMPLATE_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t91 ON t1.SECOND_ACCOUNT_ID = t91.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Account_reconcile_model_templateResultMap" type="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_reconcile_model_template" autoMapping="true">
......@@ -125,6 +128,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t51.NAME AS ACCOUNT_ID_TEXT, t1.AMOUNT, t1.AMOUNT_TYPE, t1.AUTO_RECONCILE, t1.CHART_TEMPLATE_ID, t61.NAME AS CHART_TEMPLATE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.FORCE_SECOND_TAX_INCLUDED, t1.FORCE_TAX_INCLUDED, t1.HAS_SECOND_LINE, t1.ID, t1.LABEL, t1.MATCH_AMOUNT, t1.MATCH_AMOUNT_MAX, t1.MATCH_AMOUNT_MIN, t1.MATCH_LABEL, t1.MATCH_LABEL_PARAM, t1.MATCH_NATURE, t1.MATCH_PARTNER, t1.MATCH_SAME_CURRENCY, t1.MATCH_TOTAL_AMOUNT, t1.MATCH_TOTAL_AMOUNT_PARAM, t1.NAME, t1.RULE_TYPE, t1.SECOND_ACCOUNT_ID, t91.NAME AS SECOND_ACCOUNT_ID_TEXT, t1.SECOND_AMOUNT, t1.SECOND_AMOUNT_TYPE, t1.SECOND_LABEL, t1.SECOND_TAX_ID, t41.NAME AS SECOND_TAX_ID_TEXT, t1.SEQUENCE, t1.TAX_ID, t31.NAME AS TAX_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM ACCOUNT_RECONCILE_MODEL_TEMPLATE 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 ACCOUNT_TAX_TEMPLATE t31 ON t1.TAX_ID = t31.ID LEFT JOIN ACCOUNT_TAX_TEMPLATE t41 ON t1.SECOND_TAX_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t51 ON t1.ACCOUNT_ID = t51.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t61 ON t1.CHART_TEMPLATE_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t91 ON t1.SECOND_ACCOUNT_ID = t91.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t51.NAME AS ACCOUNT_ID_TEXT, t1.AMOUNT, t1.AMOUNT_TYPE, t1.AUTO_RECONCILE, t1.CHART_TEMPLATE_ID, t61.NAME AS CHART_TEMPLATE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.FORCE_SECOND_TAX_INCLUDED, t1.FORCE_TAX_INCLUDED, t1.HAS_SECOND_LINE, t1.ID, t1.LABEL, t1.MATCH_AMOUNT, t1.MATCH_AMOUNT_MAX, t1.MATCH_AMOUNT_MIN, t1.MATCH_LABEL, t1.MATCH_LABEL_PARAM, t1.MATCH_NATURE, t1.MATCH_PARTNER, t1.MATCH_SAME_CURRENCY, t1.MATCH_TOTAL_AMOUNT, t1.MATCH_TOTAL_AMOUNT_PARAM, t1.NAME, t1.RULE_TYPE, t1.SECOND_ACCOUNT_ID, t91.NAME AS SECOND_ACCOUNT_ID_TEXT, t1.SECOND_AMOUNT, t1.SECOND_AMOUNT_TYPE, t1.SECOND_LABEL, t1.SECOND_TAX_ID, t41.NAME AS SECOND_TAX_ID_TEXT, t1.SEQUENCE, t1.TAX_ID, t31.NAME AS TAX_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM ACCOUNT_RECONCILE_MODEL_TEMPLATE 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 ACCOUNT_TAX_TEMPLATE t31 ON t1.TAX_ID = t31.ID LEFT JOIN ACCOUNT_TAX_TEMPLATE t41 ON t1.SECOND_TAX_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t51 ON t1.ACCOUNT_ID = t51.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t61 ON t1.CHART_TEMPLATE_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t91 ON t1.SECOND_ACCOUNT_ID = t91.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_tax_templateMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_tax_templateResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t11.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t51.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.CHART_TEMPLATE_ID, t21.NAME AS CHART_TEMPLATE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t101.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t81.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t61.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM ACCOUNT_TAX_TEMPLATE t1 LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t11 ON t1.CASH_BASIS_ACCOUNT_ID = t11.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t21 ON t1.CHART_TEMPLATE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t51 ON t1.CASH_BASIS_BASE_ACCOUNT_ID = t51.ID LEFT JOIN ACCOUNT_TAX_GROUP t61 ON t1.TAX_GROUP_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t81 ON t1.REFUND_ACCOUNT_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.CREATE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Account_tax_templateResultMap" type="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax_template" autoMapping="true">
......@@ -121,6 +124,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t11.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t51.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.CHART_TEMPLATE_ID, t21.NAME AS CHART_TEMPLATE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t101.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t81.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t61.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM ACCOUNT_TAX_TEMPLATE t1 LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t11 ON t1.CASH_BASIS_ACCOUNT_ID = t11.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t21 ON t1.CHART_TEMPLATE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t51 ON t1.CASH_BASIS_BASE_ACCOUNT_ID = t51.ID LEFT JOIN ACCOUNT_TAX_GROUP t61 ON t1.TAX_GROUP_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t81 ON t1.REFUND_ACCOUNT_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.CREATE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t11.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t51.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.CHART_TEMPLATE_ID, t21.NAME AS CHART_TEMPLATE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t101.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t81.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t61.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM ACCOUNT_TAX_TEMPLATE t1 LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t11 ON t1.CASH_BASIS_ACCOUNT_ID = t11.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t21 ON t1.CHART_TEMPLATE_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t51 ON t1.CASH_BASIS_BASE_ACCOUNT_ID = t51.ID LEFT JOIN ACCOUNT_TAX_GROUP t61 ON t1.TAX_GROUP_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN ACCOUNT_ACCOUNT_TEMPLATE t81 ON t1.REFUND_ACCOUNT_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.CREATE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_base.mapper.Base_module_updateMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Base_module_updateResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ADDED, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.STATE, t1.UPDATED, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM BASE_MODULE_UPDATE 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}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Base_module_updateResultMap" type="cn.ibizlab.businesscentral.core.odoo_base.domain.Base_module_update" autoMapping="true">
......@@ -48,6 +51,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ADDED, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.STATE, t1.UPDATED, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM BASE_MODULE_UPDATE 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]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ADDED, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.STATE, t1.UPDATED, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM BASE_MODULE_UPDATE 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>
</mapper>
......@@ -263,15 +263,15 @@
]]>
</sql>
<insert id="srfcaseformat(der.getName(),'l_u2lC')" parameterType="map">
insert into res_partner_res_partner_category_rel(
SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@165b26e5,SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@3a568fda
<insert id="der1nResPartnerResPartnerCategoryRelResPartnerPartnerId" parameterType="map">
INSERT INTO RES_PARTNER_RES_PARTNER_CATEGORY_REL(
PARTNER_ID,CATEGORY_ID
)values
<foreach collection="res_partner_categories" item="item" separator=",">
(${sa.srfda.ps.core.defield.pspickupdefieldimpl@165b26e5},#{item.srfkey})
(${partner_id},#{item.srfkey})
</foreach>
on conflict (SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@165b26e5,SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@3a568fda)
do nothing;
ON CONFLICT (PARTNER_ID,CATEGORY_ID)
DO NOTHING;
</insert>
</mapper>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Res_supplierResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT (SELECT array_to_json(array_agg(t.*)) FROM (SELECT m1.CATEGORY_ID as srfkey, m2.NAME AS srfmajortext FROM res_partner_res_partner_category_rel m1 LEFT JOIN RES_PARTNER_CATEGORY m2 ON m1.CATEGORY_ID = m2.ID where m1.partner_id =t1.id ) t) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.TYPE, t1.VAT FROM RES_PARTNER t1 ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM RES_PARTNER_RES_PARTNER_CATEGORY_REL M1 LEFT JOIN RES_PARTNER_CATEGORY M2 ON M1.CATEGORY_ID = M2.ID WHERE M1.PARTNER_ID =T1.ID ) T) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.TYPE, t1.VAT FROM RES_PARTNER t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -34,19 +34,19 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT (SELECT array_to_json(array_agg(t.*)) FROM (SELECT m1.CATEGORY_ID as srfkey, m2.NAME AS srfmajortext FROM res_partner_res_partner_category_rel m1 LEFT JOIN RES_PARTNER_CATEGORY m2 ON m1.CATEGORY_ID = m2.ID where m1.partner_id =t1.id ) t) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.TYPE, t1.VAT FROM RES_PARTNER t1
<![CDATA[ SELECT (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM RES_PARTNER_RES_PARTNER_CATEGORY_REL M1 LEFT JOIN RES_PARTNER_CATEGORY M2 ON M1.CATEGORY_ID = M2.ID WHERE M1.PARTNER_ID =T1.ID ) T) AS CATEGORY_ID, t1.EMAIL, t1.FUNCTION, t1.ID, t1.MOBILE, t1.NAME, t1.PHONE, t1.TYPE, t1.VAT FROM RES_PARTNER t1
]]>
</sql>
<insert id="srfcaseformat(der.getName(),'l_u2lC')" parameterType="map">
insert into res_partner_res_partner_category_rel(
SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@35ea48ee,SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@285a1ce9
<insert id="der1nResSupplierResPartnerCategoryRelResSupplierPartnerId" parameterType="map">
INSERT INTO RES_PARTNER_RES_PARTNER_CATEGORY_REL(
PARTNER_ID,CATEGORY_ID
)values
<foreach collection="res_partner_categories" item="item" separator=",">
(${sa.srfda.ps.core.defield.pspickupdefieldimpl@35ea48ee},#{item.srfkey})
(${partner_id},#{item.srfkey})
</foreach>
on conflict (SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@35ea48ee,SA.SRFDA.PS.Core.DEField.PSPickupDEFieldImpl@285a1ce9)
do nothing;
ON CONFLICT (PARTNER_ID,CATEGORY_ID)
DO NOTHING;
</insert>
</mapper>
......
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_users_logMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Res_users_logResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM RES_USERS_LOG 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}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Res_users_logResultMap" type="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users_log" autoMapping="true">
......@@ -48,6 +51,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM RES_USERS_LOG 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]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM RES_USERS_LOG 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>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_base_import.mapper.Base_import_tests_models_m2o_requiredMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Base_import_tests_models_m2o_requiredResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.VALUE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM BASE_IMPORT_TESTS_MODELS_M2O_REQUIRED 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Base_import_tests_models_m2o_requiredResultMap" type="cn.ibizlab.businesscentral.core.odoo_base_import.domain.Base_import_tests_models_m2o_required" autoMapping="true">
......@@ -58,6 +61,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.VALUE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM BASE_IMPORT_TESTS_MODELS_M2O_REQUIRED 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.VALUE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM BASE_IMPORT_TESTS_MODELS_M2O_REQUIRED 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_event.mapper.Event_event_ticketMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Event_event_ticketResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.DEADLINE, t1.EVENT_ID, t21.NAME AS EVENT_ID_TEXT, t1.EVENT_TYPE_ID, t11.NAME AS EVENT_TYPE_ID_TEXT, t1.ID, t1.NAME, t1.PRICE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.SEATS_AVAILABILITY, t1.SEATS_AVAILABLE, t1.SEATS_MAX, t1.SEATS_RESERVED, t1.SEATS_UNCONFIRMED, t1.SEATS_USED, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM EVENT_EVENT_TICKET t1 LEFT JOIN EVENT_TYPE t11 ON t1.EVENT_TYPE_ID = t11.ID LEFT JOIN EVENT_EVENT t21 ON t1.EVENT_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 RES_USERS t51 ON t1.WRITE_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 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Event_event_ticketResultMap" type="cn.ibizlab.businesscentral.core.odoo_event.domain.Event_event_ticket" autoMapping="true">
......@@ -91,6 +94,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.DEADLINE, t1.EVENT_ID, t21.NAME AS EVENT_ID_TEXT, t1.EVENT_TYPE_ID, t11.NAME AS EVENT_TYPE_ID_TEXT, t1.ID, t1.NAME, t1.PRICE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.SEATS_AVAILABILITY, t1.SEATS_AVAILABLE, t1.SEATS_MAX, t1.SEATS_RESERVED, t1.SEATS_UNCONFIRMED, t1.SEATS_USED, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM EVENT_EVENT_TICKET t1 LEFT JOIN EVENT_TYPE t11 ON t1.EVENT_TYPE_ID = t11.ID LEFT JOIN EVENT_EVENT t21 ON t1.EVENT_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 RES_USERS t51 ON t1.WRITE_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
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.DEADLINE, t1.EVENT_ID, t21.NAME AS EVENT_ID_TEXT, t1.EVENT_TYPE_ID, t11.NAME AS EVENT_TYPE_ID_TEXT, t1.ID, t1.NAME, t1.PRICE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.SEATS_AVAILABILITY, t1.SEATS_AVAILABLE, t1.SEATS_MAX, t1.SEATS_RESERVED, t1.SEATS_UNCONFIRMED, t1.SEATS_USED, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM EVENT_EVENT_TICKET t1 LEFT JOIN EVENT_TYPE t11 ON t1.EVENT_TYPE_ID = t11.ID LEFT JOIN EVENT_EVENT t21 ON t1.EVENT_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 RES_USERS t51 ON t1.WRITE_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
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_event.mapper.Event_type_mailMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Event_type_mailResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.EVENT_TYPE_ID, t11.NAME AS EVENT_TYPE_ID_TEXT, t1.ID, t1.INTERVAL_NBR, t1.INTERVAL_TYPE, t1.INTERVAL_UNIT, t1.TEMPLATE_ID, t61.NAME AS TEMPLATE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM EVENT_TYPE_MAIL t1 LEFT JOIN EVENT_TYPE t11 ON t1.EVENT_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_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN MAIL_TEMPLATE t61 ON t1.TEMPLATE_ID = t61.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Event_type_mailResultMap" type="cn.ibizlab.businesscentral.core.odoo_event.domain.Event_type_mail" autoMapping="true">
......@@ -73,6 +76,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.EVENT_TYPE_ID, t11.NAME AS EVENT_TYPE_ID_TEXT, t1.ID, t1.INTERVAL_NBR, t1.INTERVAL_TYPE, t1.INTERVAL_UNIT, t1.TEMPLATE_ID, t61.NAME AS TEMPLATE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM EVENT_TYPE_MAIL t1 LEFT JOIN EVENT_TYPE t11 ON t1.EVENT_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_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN MAIL_TEMPLATE t61 ON t1.TEMPLATE_ID = t61.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.EVENT_TYPE_ID, t11.NAME AS EVENT_TYPE_ID_TEXT, t1.ID, t1.INTERVAL_NBR, t1.INTERVAL_TYPE, t1.INTERVAL_UNIT, t1.TEMPLATE_ID, t61.NAME AS TEMPLATE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM EVENT_TYPE_MAIL t1 LEFT JOIN EVENT_TYPE t11 ON t1.EVENT_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_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN MAIL_TEMPLATE t61 ON t1.TEMPLATE_ID = t61.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_fleet.mapper.Fleet_vehicleMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Fleet_vehicleResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACQUISITION_DATE, t1.ACTIVE, t1.BRAND_ID, t91.NAME AS BRAND_ID_TEXT, t1.CAR_VALUE, t1.CO2, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DOORS, t1.DRIVER_ID, t51.NAME AS DRIVER_ID_TEXT, t1.FIRST_CONTRACT_DATE, t1.FUEL_TYPE, t1.HORSEPOWER, t1.HORSEPOWER_TAX, t1.ID, t1.LICENSE_PLATE, t1.LOCATION, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MODEL_ID, t81.NAME AS MODEL_ID_TEXT, t1.MODEL_YEAR, t1.NAME, t1.ODOMETER_UNIT, t1.POWER, t1.RESIDUAL_VALUE, t1.SEATS, t1.STATE_ID, t101.NAME AS STATE_ID_TEXT, t1.TRANSMISSION, t1.VIN_SN, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM FLEET_VEHICLE 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.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t1.DRIVER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN FLEET_VEHICLE_MODEL t81 ON t1.MODEL_ID = t81.ID LEFT JOIN FLEET_VEHICLE_MODEL_BRAND t91 ON t1.BRAND_ID = t91.ID LEFT JOIN FLEET_VEHICLE_STATE t101 ON t1.STATE_ID = t101.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Fleet_vehicleResultMap" type="cn.ibizlab.businesscentral.core.odoo_fleet.domain.Fleet_vehicle" autoMapping="true">
......@@ -154,6 +157,11 @@
<![CDATA[ SELECT t1.ACQUISITION_DATE, t1.ACTIVE, t1.BRAND_ID, t91.NAME AS BRAND_ID_TEXT, t1.CAR_VALUE, t1.CO2, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DOORS, t1.DRIVER_ID, t51.NAME AS DRIVER_ID_TEXT, t1.FIRST_CONTRACT_DATE, t1.FUEL_TYPE, t1.HORSEPOWER, t1.HORSEPOWER_TAX, t1.ID, t1.LICENSE_PLATE, t1.LOCATION, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MODEL_ID, t81.NAME AS MODEL_ID_TEXT, t1.MODEL_YEAR, t1.NAME, t1.ODOMETER_UNIT, t1.POWER, t1.RESIDUAL_VALUE, t1.SEATS, t1.STATE_ID, t101.NAME AS STATE_ID_TEXT, t1.TRANSMISSION, t1.VIN_SN, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM FLEET_VEHICLE 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.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t1.DRIVER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN FLEET_VEHICLE_MODEL t81 ON t1.MODEL_ID = t81.ID LEFT JOIN FLEET_VEHICLE_MODEL_BRAND t91 ON t1.BRAND_ID = t91.ID LEFT JOIN FLEET_VEHICLE_STATE t101 ON t1.STATE_ID = t101.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACQUISITION_DATE, t1.ACTIVE, t1.BRAND_ID, t91.NAME AS BRAND_ID_TEXT, t1.CAR_VALUE, t1.CO2, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DOORS, t1.DRIVER_ID, t51.NAME AS DRIVER_ID_TEXT, t1.FIRST_CONTRACT_DATE, t1.FUEL_TYPE, t1.HORSEPOWER, t1.HORSEPOWER_TAX, t1.ID, t1.LICENSE_PLATE, t1.LOCATION, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MODEL_ID, t81.NAME AS MODEL_ID_TEXT, t1.MODEL_YEAR, t1.NAME, t1.ODOMETER_UNIT, t1.POWER, t1.RESIDUAL_VALUE, t1.SEATS, t1.STATE_ID, t101.NAME AS STATE_ID_TEXT, t1.TRANSMISSION, t1.VIN_SN, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM FLEET_VEHICLE 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.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t1.DRIVER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN FLEET_VEHICLE_MODEL t81 ON t1.MODEL_ID = t81.ID LEFT JOIN FLEET_VEHICLE_MODEL_BRAND t91 ON t1.BRAND_ID = t91.ID LEFT JOIN FLEET_VEHICLE_STATE t101 ON t1.STATE_ID = t101.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_fleet.mapper.Fleet_vehicle_assignation_logMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Fleet_vehicle_assignation_logResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.DATE_END, t1.DATE_START, t1.DRIVER_ID, t21.NAME AS DRIVER_ID_TEXT, t1.ID, t1.VEHICLE_ID, t11.NAME AS VEHICLE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM FLEET_VEHICLE_ASSIGNATION_LOG t1 LEFT JOIN FLEET_VEHICLE t11 ON t1.VEHICLE_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t1.DRIVER_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 RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Fleet_vehicle_assignation_logResultMap" type="cn.ibizlab.businesscentral.core.odoo_fleet.domain.Fleet_vehicle_assignation_log" autoMapping="true">
......@@ -72,6 +75,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.DATE_END, t1.DATE_START, t1.DRIVER_ID, t21.NAME AS DRIVER_ID_TEXT, t1.ID, t1.VEHICLE_ID, t11.NAME AS VEHICLE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM FLEET_VEHICLE_ASSIGNATION_LOG t1 LEFT JOIN FLEET_VEHICLE t11 ON t1.VEHICLE_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t1.DRIVER_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 RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.DATE_END, t1.DATE_START, t1.DRIVER_ID, t21.NAME AS DRIVER_ID_TEXT, t1.ID, t1.VEHICLE_ID, t11.NAME AS VEHICLE_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM FLEET_VEHICLE_ASSIGNATION_LOG t1 LEFT JOIN FLEET_VEHICLE t11 ON t1.VEHICLE_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t1.DRIVER_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 RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_gamification.mapper.Gamification_goalMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Gamification_goalResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CHALLENGE_ID, t41.NAME AS CHALLENGE_ID_TEXT, t1.CLOSED, t11.COMPUTATION_MODE, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENT, t11.CONDITION AS DEFINITION_CONDITION, t11.DESCRIPTION AS DEFINITION_DESCRIPTION, t11.DISPLAY_MODE AS DEFINITION_DISPLAY, t1.DEFINITION_ID, t11.NAME AS DEFINITION_ID_TEXT, t1.END_DATE, t1.ID, t1.LAST_UPDATE, t1.LINE_ID, t81.NAME AS LINE_ID_TEXT, t1.REMIND_UPDATE_DELAY, t1.START_DATE, t1.STATE, t1.TARGET_GOAL, t1.TO_UPDATE, t1.USER_ID, t101.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM GAMIFICATION_GOAL t1 LEFT JOIN GAMIFICATION_GOAL_DEFINITION t11 ON t1.DEFINITION_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 GAMIFICATION_CHALLENGE t41 ON t1.CHALLENGE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN GAMIFICATION_CHALLENGE_LINE t71 ON t1.LINE_ID = t71.ID LEFT JOIN GAMIFICATION_GOAL_DEFINITION t81 ON t71.DEFINITION_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.USER_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Gamification_goalResultMap" type="cn.ibizlab.businesscentral.core.odoo_gamification.domain.Gamification_goal" autoMapping="true">
......@@ -103,6 +106,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CHALLENGE_ID, t31.NAME AS CHALLENGE_ID_TEXT, t1.CLOSED, t61.COMPUTATION_MODE, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.CURRENT, t61.CONDITION AS DEFINITION_CONDITION, t61.DISPLAY_MODE AS DEFINITION_DISPLAY, t1.DEFINITION_ID, t61.NAME AS DEFINITION_ID_TEXT, t1.END_DATE, t1.ID, t1.LAST_UPDATE, t1.LINE_ID, t81.NAME AS LINE_ID_TEXT, t1.REMIND_UPDATE_DELAY, t1.START_DATE, t1.STATE, t1.TARGET_GOAL, t1.TO_UPDATE, t1.USER_ID, t101.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM GAMIFICATION_GOAL 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 GAMIFICATION_CHALLENGE t31 ON t1.CHALLENGE_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN GAMIFICATION_GOAL_DEFINITION t61 ON t1.DEFINITION_ID = t61.ID LEFT JOIN GAMIFICATION_CHALLENGE_LINE t71 ON t1.LINE_ID = t71.ID LEFT JOIN GAMIFICATION_GOAL_DEFINITION t81 ON t71.DEFINITION_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.USER_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CHALLENGE_ID, t41.NAME AS CHALLENGE_ID_TEXT, t1.CLOSED, t11.COMPUTATION_MODE, t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.CURRENT, t11.CONDITION AS DEFINITION_CONDITION, t11.DESCRIPTION AS DEFINITION_DESCRIPTION, t11.DISPLAY_MODE AS DEFINITION_DISPLAY, t1.DEFINITION_ID, t11.NAME AS DEFINITION_ID_TEXT, t1.END_DATE, t1.ID, t1.LAST_UPDATE, t1.LINE_ID, t81.NAME AS LINE_ID_TEXT, t1.REMIND_UPDATE_DELAY, t1.START_DATE, t1.STATE, t1.TARGET_GOAL, t1.TO_UPDATE, t1.USER_ID, t101.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM GAMIFICATION_GOAL t1 LEFT JOIN GAMIFICATION_GOAL_DEFINITION t11 ON t1.DEFINITION_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 GAMIFICATION_CHALLENGE t41 ON t1.CHALLENGE_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN GAMIFICATION_CHALLENGE_LINE t71 ON t1.LINE_ID = t71.ID LEFT JOIN GAMIFICATION_GOAL_DEFINITION t81 ON t71.DEFINITION_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.USER_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_hr.mapper.Hr_contract_typeMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Hr_contract_typeResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT_TYPE 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}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Hr_contract_typeResultMap" type="cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_contract_type" autoMapping="true">
......@@ -48,6 +51,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT_TYPE 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]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM HR_CONTRACT_TYPE 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>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_hr.mapper.Hr_employee_categoryMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Hr_employee_categoryResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.COLOR, 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 HR_EMPLOYEE_CATEGORY 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}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Hr_employee_categoryResultMap" type="cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_employee_category" autoMapping="true">
......@@ -49,6 +52,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.COLOR, 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 HR_EMPLOYEE_CATEGORY 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]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.COLOR, 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 HR_EMPLOYEE_CATEGORY 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>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_hr.mapper.Hr_expense_sheetMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Hr_expense_sheetResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNTING_DATE, t1.ACCOUNT_MOVE_ID, t101.NAME AS ACCOUNT_MOVE_ID_TEXT, t1.ADDRESS_ID, t121.NAME AS ADDRESS_ID_TEXT, t1.BANK_JOURNAL_ID, t51.NAME AS BANK_JOURNAL_ID_TEXT, t1.COMPANY_ID, t161.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t141.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t111.NAME AS CURRENCY_ID_TEXT, t1.DEPARTMENT_ID, t41.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t71.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOURNAL_ID, t11.NAME AS JOURNAL_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.STATE, t1.TOTAL_AMOUNT, t1.USER_ID, t31.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM HR_EXPENSE_SHEET t1 LEFT JOIN ACCOUNT_JOURNAL t11 ON t1.JOURNAL_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.USER_ID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN HR_DEPARTMENT t41 ON t1.DEPARTMENT_ID = t41.ID LEFT JOIN ACCOUNT_JOURNAL t51 ON t1.BANK_JOURNAL_ID = t51.ID LEFT JOIN HR_EMPLOYEE t61 ON t1.EMPLOYEE_ID = t61.ID LEFT JOIN RESOURCE_RESOURCE t71 ON t61.RESOURCE_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN ACCOUNT_MOVE t101 ON t1.ACCOUNT_MOVE_ID = t101.ID LEFT JOIN RES_CURRENCY t111 ON t1.CURRENCY_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t1.ADDRESS_ID = t121.ID LEFT JOIN RES_USERS t131 ON t1.CREATE_UID = t131.ID LEFT JOIN RES_PARTNER t141 ON t131.PARTNER_ID = t141.ID LEFT JOIN RES_COMPANY t151 ON t1.COMPANY_ID = t151.ID LEFT JOIN RES_PARTNER t161 ON t151.PARTNER_ID = t161.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Hr_expense_sheetResultMap" type="cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_expense_sheet" autoMapping="true">
......@@ -174,6 +177,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNTING_DATE, t1.ACCOUNT_MOVE_ID, t101.NAME AS ACCOUNT_MOVE_ID_TEXT, t1.ADDRESS_ID, t121.NAME AS ADDRESS_ID_TEXT, t1.BANK_JOURNAL_ID, t51.NAME AS BANK_JOURNAL_ID_TEXT, t1.COMPANY_ID, t161.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t141.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t111.NAME AS CURRENCY_ID_TEXT, t1.DEPARTMENT_ID, t41.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t71.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOURNAL_ID, t11.NAME AS JOURNAL_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.STATE, t1.TOTAL_AMOUNT, t1.USER_ID, t31.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM HR_EXPENSE_SHEET t1 LEFT JOIN ACCOUNT_JOURNAL t11 ON t1.JOURNAL_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.USER_ID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN HR_DEPARTMENT t41 ON t1.DEPARTMENT_ID = t41.ID LEFT JOIN ACCOUNT_JOURNAL t51 ON t1.BANK_JOURNAL_ID = t51.ID LEFT JOIN HR_EMPLOYEE t61 ON t1.EMPLOYEE_ID = t61.ID LEFT JOIN RESOURCE_RESOURCE t71 ON t61.RESOURCE_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN ACCOUNT_MOVE t101 ON t1.ACCOUNT_MOVE_ID = t101.ID LEFT JOIN RES_CURRENCY t111 ON t1.CURRENCY_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t1.ADDRESS_ID = t121.ID LEFT JOIN RES_USERS t131 ON t1.CREATE_UID = t131.ID LEFT JOIN RES_PARTNER t141 ON t131.PARTNER_ID = t141.ID LEFT JOIN RES_COMPANY t151 ON t1.COMPANY_ID = t151.ID LEFT JOIN RES_PARTNER t161 ON t151.PARTNER_ID = t161.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNTING_DATE, t1.ACCOUNT_MOVE_ID, t101.NAME AS ACCOUNT_MOVE_ID_TEXT, t1.ADDRESS_ID, t121.NAME AS ADDRESS_ID_TEXT, t1.BANK_JOURNAL_ID, t51.NAME AS BANK_JOURNAL_ID_TEXT, t1.COMPANY_ID, t161.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t141.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t111.NAME AS CURRENCY_ID_TEXT, t1.DEPARTMENT_ID, t41.NAME AS DEPARTMENT_ID_TEXT, t1.EMPLOYEE_ID, t71.NAME AS EMPLOYEE_ID_TEXT, t1.ID, t1.JOURNAL_ID, t11.NAME AS JOURNAL_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.STATE, t1.TOTAL_AMOUNT, t1.USER_ID, t31.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM HR_EXPENSE_SHEET t1 LEFT JOIN ACCOUNT_JOURNAL t11 ON t1.JOURNAL_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.USER_ID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN HR_DEPARTMENT t41 ON t1.DEPARTMENT_ID = t41.ID LEFT JOIN ACCOUNT_JOURNAL t51 ON t1.BANK_JOURNAL_ID = t51.ID LEFT JOIN HR_EMPLOYEE t61 ON t1.EMPLOYEE_ID = t61.ID LEFT JOIN RESOURCE_RESOURCE t71 ON t61.RESOURCE_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN ACCOUNT_MOVE t101 ON t1.ACCOUNT_MOVE_ID = t101.ID LEFT JOIN RES_CURRENCY t111 ON t1.CURRENCY_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t1.ADDRESS_ID = t121.ID LEFT JOIN RES_USERS t131 ON t1.CREATE_UID = t131.ID LEFT JOIN RES_PARTNER t141 ON t131.PARTNER_ID = t141.ID LEFT JOIN RES_COMPANY t151 ON t1.COMPANY_ID = t151.ID LEFT JOIN RES_PARTNER t161 ON t151.PARTNER_ID = t161.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_lunch.mapper.Lunch_productMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Lunch_productResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.CATEGORY_ID, t61.NAME AS CATEGORY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t1.ID, t1.NAME, t1.PRICE, t1.SUPPLIER, t31.NAME AS SUPPLIER_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM LUNCH_PRODUCT 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_PARTNER t31 ON t1.SUPPLIER = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN LUNCH_PRODUCT_CATEGORY t61 ON t1.CATEGORY_ID = t61.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Lunch_productResultMap" type="cn.ibizlab.businesscentral.core.odoo_lunch.domain.Lunch_product" autoMapping="true">
......@@ -70,6 +73,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.CATEGORY_ID, t61.NAME AS CATEGORY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PRICE, t1.SUPPLIER, t31.NAME AS SUPPLIER_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM LUNCH_PRODUCT 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_PARTNER t31 ON t1.SUPPLIER = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN LUNCH_PRODUCT_CATEGORY t61 ON t1.CATEGORY_ID = t61.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.CATEGORY_ID, t61.NAME AS CATEGORY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t1.ID, t1.NAME, t1.PRICE, t1.SUPPLIER, t31.NAME AS SUPPLIER_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM LUNCH_PRODUCT 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_PARTNER t31 ON t1.SUPPLIER = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN LUNCH_PRODUCT_CATEGORY t61 ON t1.CATEGORY_ID = t61.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_mail.mapper.Mail_botMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Mail_botResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ID FROM MAIL_BOT t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Mail_botResultMap" type="cn.ibizlab.businesscentral.core.odoo_mail.domain.Mail_bot" autoMapping="true">
......@@ -24,6 +27,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ID FROM MAIL_BOT t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ID FROM MAIL_BOT t1
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_mro.mapper.Mro_pm_meter_ratioMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Mro_pm_meter_ratioResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PRECISION, t1.RATIO, t1.RATIO_TYPE, t1.ROUNDING_TYPE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM MRO_PM_METER_RATIO 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Mro_pm_meter_ratioResultMap" type="cn.ibizlab.businesscentral.core.odoo_mro.domain.Mro_pm_meter_ratio" autoMapping="true">
......@@ -50,6 +53,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PRECISION, t1.RATIO, t1.RATIO_TYPE, t1.ROUNDING_TYPE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM MRO_PM_METER_RATIO 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PRECISION, t1.RATIO, t1.RATIO_TYPE, t1.ROUNDING_TYPE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM MRO_PM_METER_RATIO 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_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_mrp.mapper.Mrp_product_produceMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Mrp_product_produceResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOT_ID, t71.NAME AS LOT_ID_TEXT, t1.PRODUCTION_ID, t41.NAME AS PRODUCTION_ID_TEXT, t1.PRODUCT_ID, t61.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t61.TRACKING AS PRODUCT_TRACKING, t1.PRODUCT_UOM_ID, t11.NAME AS PRODUCT_UOM_ID_TEXT, t1.SERIAL, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM MRP_PRODUCT_PRODUCE t1 LEFT JOIN UOM_UOM t11 ON t1.PRODUCT_UOM_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 MRP_PRODUCTION t41 ON t1.PRODUCTION_ID = t41.ID LEFT JOIN PRODUCT_PRODUCT t51 ON t1.PRODUCT_ID = t51.ID LEFT JOIN PRODUCT_TEMPLATE t61 ON t51.PRODUCT_TMPL_ID = t61.ID LEFT JOIN STOCK_PRODUCTION_LOT t71 ON t1.LOT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Mrp_product_produceResultMap" type="cn.ibizlab.businesscentral.core.odoo_mrp.domain.Mrp_product_produce" autoMapping="true">
......@@ -95,6 +98,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOT_ID, t71.NAME AS LOT_ID_TEXT, t1.PRODUCTION_ID, t41.NAME AS PRODUCTION_ID_TEXT, t1.PRODUCT_ID, t61.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t61.TRACKING AS PRODUCT_TRACKING, t1.PRODUCT_UOM_ID, t11.NAME AS PRODUCT_UOM_ID_TEXT, t1.SERIAL, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM MRP_PRODUCT_PRODUCE t1 LEFT JOIN UOM_UOM t11 ON t1.PRODUCT_UOM_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 MRP_PRODUCTION t41 ON t1.PRODUCTION_ID = t41.ID LEFT JOIN PRODUCT_PRODUCT t51 ON t1.PRODUCT_ID = t51.ID LEFT JOIN PRODUCT_TEMPLATE t61 ON t51.PRODUCT_TMPL_ID = t61.ID LEFT JOIN STOCK_PRODUCTION_LOT t71 ON t1.LOT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t31.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOT_ID, t71.NAME AS LOT_ID_TEXT, t1.PRODUCTION_ID, t41.NAME AS PRODUCTION_ID_TEXT, t1.PRODUCT_ID, t61.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t61.TRACKING AS PRODUCT_TRACKING, t1.PRODUCT_UOM_ID, t11.NAME AS PRODUCT_UOM_ID_TEXT, t1.SERIAL, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM MRP_PRODUCT_PRODUCE t1 LEFT JOIN UOM_UOM t11 ON t1.PRODUCT_UOM_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 MRP_PRODUCTION t41 ON t1.PRODUCTION_ID = t41.ID LEFT JOIN PRODUCT_PRODUCT t51 ON t1.PRODUCT_ID = t51.ID LEFT JOIN PRODUCT_TEMPLATE t61 ON t51.PRODUCT_TMPL_ID = t61.ID LEFT JOIN STOCK_PRODUCTION_LOT t71 ON t1.LOT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_note.mapper.Note_stageMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Note_stageResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.FOLD, t1.ID, t1.NAME, t1.SEQUENCE, t1.USER_ID, t61.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM NOTE_STAGE 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 LEFT JOIN RES_USERS t51 ON t1.USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Note_stageResultMap" type="cn.ibizlab.businesscentral.core.odoo_note.domain.Note_stage" autoMapping="true">
......@@ -59,6 +62,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.FOLD, t1.ID, t1.NAME, t1.SEQUENCE, t1.USER_ID, t61.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM NOTE_STAGE 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 LEFT JOIN RES_USERS t51 ON t1.USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.FOLD, t1.ID, t1.NAME, t1.SEQUENCE, t1.USER_ID, t61.NAME AS USER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM NOTE_STAGE 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 LEFT JOIN RES_USERS t51 ON t1.USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_portal.mapper.Portal_shareMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Portal_shareResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NOTE, t1.RES_ID, t1.RES_MODEL, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM PORTAL_SHARE 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}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Portal_shareResultMap" type="cn.ibizlab.businesscentral.core.odoo_portal.domain.Portal_share" autoMapping="true">
......@@ -53,6 +56,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.RES_ID, t1.RES_MODEL, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM PORTAL_SHARE 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]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NOTE, t1.RES_ID, t1.RES_MODEL, t1.WRITE_DATE, t1.WRITE_UID, t21.NAME AS WRITE_UID_TEXT FROM PORTAL_SHARE 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>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_pricelist_itemMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Product_pricelist_itemResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.APPLIED_ON, t1.BASE, t1.BASE_PRICELIST_ID, t41.NAME AS BASE_PRICELIST_ID_TEXT, t1.CATEG_ID, t31.NAME AS CATEG_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.COMPUTE_PRICE, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t21.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.FIXED_PRICE, t1.ID, t1.MIN_QUANTITY, t1.PERCENT_PRICE, t1.PRICELIST_ID, t11.NAME AS PRICELIST_ID_TEXT, t1.PRICE_DISCOUNT, t1.PRICE_MAX_MARGIN, t1.PRICE_MIN_MARGIN, t1.PRICE_ROUND, t1.PRICE_SURCHARGE, t1.PRODUCT_ID, t131.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_TMPL_ID, t71.NAME AS PRODUCT_TMPL_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM PRODUCT_PRICELIST_ITEM t1 LEFT JOIN PRODUCT_PRICELIST t11 ON t1.PRICELIST_ID = t11.ID LEFT JOIN RES_CURRENCY t21 ON t1.CURRENCY_ID = t21.ID LEFT JOIN PRODUCT_CATEGORY t31 ON t1.CATEG_ID = t31.ID LEFT JOIN PRODUCT_PRICELIST t41 ON t1.BASE_PRICELIST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t1.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PRODUCT_PRODUCT t121 ON t1.PRODUCT_ID = t121.ID LEFT JOIN PRODUCT_TEMPLATE t131 ON t121.PRODUCT_TMPL_ID = t131.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Product_pricelist_itemResultMap" type="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_pricelist_item" autoMapping="true">
......@@ -137,6 +140,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.APPLIED_ON, t1.BASE, t1.BASE_PRICELIST_ID, t41.NAME AS BASE_PRICELIST_ID_TEXT, t1.CATEG_ID, t31.NAME AS CATEG_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.COMPUTE_PRICE, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t21.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.FIXED_PRICE, t1.ID, t1.MIN_QUANTITY, t1.PERCENT_PRICE, t1.PRICELIST_ID, t11.NAME AS PRICELIST_ID_TEXT, t1.PRICE_DISCOUNT, t1.PRICE_MAX_MARGIN, t1.PRICE_MIN_MARGIN, t1.PRICE_ROUND, t1.PRICE_SURCHARGE, t1.PRODUCT_ID, t131.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_TMPL_ID, t71.NAME AS PRODUCT_TMPL_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM PRODUCT_PRICELIST_ITEM t1 LEFT JOIN PRODUCT_PRICELIST t11 ON t1.PRICELIST_ID = t11.ID LEFT JOIN RES_CURRENCY t21 ON t1.CURRENCY_ID = t21.ID LEFT JOIN PRODUCT_CATEGORY t31 ON t1.CATEG_ID = t31.ID LEFT JOIN PRODUCT_PRICELIST t41 ON t1.BASE_PRICELIST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t1.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PRODUCT_PRODUCT t121 ON t1.PRODUCT_ID = t121.ID LEFT JOIN PRODUCT_TEMPLATE t131 ON t121.PRODUCT_TMPL_ID = t131.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.APPLIED_ON, t1.BASE, t1.BASE_PRICELIST_ID, t41.NAME AS BASE_PRICELIST_ID_TEXT, t1.CATEG_ID, t31.NAME AS CATEG_ID_TEXT, t1.COMPANY_ID, t111.NAME AS COMPANY_ID_TEXT, t1.COMPUTE_PRICE, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t21.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.FIXED_PRICE, t1.ID, t1.MIN_QUANTITY, t1.PERCENT_PRICE, t1.PRICELIST_ID, t11.NAME AS PRICELIST_ID_TEXT, t1.PRICE_DISCOUNT, t1.PRICE_MAX_MARGIN, t1.PRICE_MIN_MARGIN, t1.PRICE_ROUND, t1.PRICE_SURCHARGE, t1.PRODUCT_ID, t131.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_TMPL_ID, t71.NAME AS PRODUCT_TMPL_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM PRODUCT_PRICELIST_ITEM t1 LEFT JOIN PRODUCT_PRICELIST t11 ON t1.PRICELIST_ID = t11.ID LEFT JOIN RES_CURRENCY t21 ON t1.CURRENCY_ID = t21.ID LEFT JOIN PRODUCT_CATEGORY t31 ON t1.CATEG_ID = t31.ID LEFT JOIN PRODUCT_PRICELIST t41 ON t1.BASE_PRICELIST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t1.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_COMPANY t101 ON t1.COMPANY_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN PRODUCT_PRODUCT t121 ON t1.PRODUCT_ID = t121.ID LEFT JOIN PRODUCT_TEMPLATE t131 ON t121.PRODUCT_TMPL_ID = t131.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_resource.mapper.Resource_testMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Resource_testResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.RESOURCE_CALENDAR_ID, t51.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t61.NAME AS RESOURCE_ID_TEXT, t61.TZ, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM RESOURCE_TEST 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.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_CALENDAR t51 ON t1.RESOURCE_CALENDAR_ID = t51.ID LEFT JOIN RESOURCE_RESOURCE t61 ON t1.RESOURCE_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Resource_testResultMap" type="cn.ibizlab.businesscentral.core.odoo_resource.domain.Resource_test" autoMapping="true">
......@@ -81,6 +84,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.RESOURCE_CALENDAR_ID, t51.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t61.NAME AS RESOURCE_ID_TEXT, t61.TZ, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM RESOURCE_TEST 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.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_CALENDAR t51 ON t1.RESOURCE_CALENDAR_ID = t51.ID LEFT JOIN RESOURCE_RESOURCE t61 ON t1.RESOURCE_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.RESOURCE_CALENDAR_ID, t51.NAME AS RESOURCE_CALENDAR_ID_TEXT, t1.RESOURCE_ID, t61.NAME AS RESOURCE_ID_TEXT, t61.TZ, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM RESOURCE_TEST 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.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RESOURCE_CALENDAR t51 ON t1.RESOURCE_CALENDAR_ID = t51.ID LEFT JOIN RESOURCE_RESOURCE t61 ON t1.RESOURCE_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_sale.mapper.Sale_advance_payment_invMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Sale_advance_payment_invResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ADVANCE_PAYMENT_METHOD, t1.AMOUNT, t1.COUNT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPOSIT_ACCOUNT_ID, t11.NAME AS DEPOSIT_ACCOUNT_ID_TEXT, t1.ID, t1.PRODUCT_ID, t31.NAME AS PRODUCT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM SALE_ADVANCE_PAYMENT_INV t1 LEFT JOIN ACCOUNT_ACCOUNT t11 ON t1.DEPOSIT_ACCOUNT_ID = t11.ID LEFT JOIN PRODUCT_PRODUCT t21 ON t1.PRODUCT_ID = t21.ID LEFT JOIN PRODUCT_TEMPLATE t31 ON t21.PRODUCT_TMPL_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Sale_advance_payment_invResultMap" type="cn.ibizlab.businesscentral.core.odoo_sale.domain.Sale_advance_payment_inv" autoMapping="true">
......@@ -72,6 +75,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ADVANCE_PAYMENT_METHOD, t1.AMOUNT, t1.COUNT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPOSIT_ACCOUNT_ID, t11.NAME AS DEPOSIT_ACCOUNT_ID_TEXT, t1.ID, t1.PRODUCT_ID, t31.NAME AS PRODUCT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM SALE_ADVANCE_PAYMENT_INV t1 LEFT JOIN ACCOUNT_ACCOUNT t11 ON t1.DEPOSIT_ACCOUNT_ID = t11.ID LEFT JOIN PRODUCT_PRODUCT t21 ON t1.PRODUCT_ID = t21.ID LEFT JOIN PRODUCT_TEMPLATE t31 ON t21.PRODUCT_TMPL_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ADVANCE_PAYMENT_METHOD, t1.AMOUNT, t1.COUNT, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t1.DEPOSIT_ACCOUNT_ID, t11.NAME AS DEPOSIT_ACCOUNT_ID_TEXT, t1.ID, t1.PRODUCT_ID, t31.NAME AS PRODUCT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT FROM SALE_ADVANCE_PAYMENT_INV t1 LEFT JOIN ACCOUNT_ACCOUNT t11 ON t1.DEPOSIT_ACCOUNT_ID = t11.ID LEFT JOIN PRODUCT_PRODUCT t21 ON t1.PRODUCT_ID = t21.ID LEFT JOIN PRODUCT_TEMPLATE t31 ON t21.PRODUCT_TMPL_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_sms.mapper.Sms_apiMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Sms_apiResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ID FROM SMS_API t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Sms_apiResultMap" type="cn.ibizlab.businesscentral.core.odoo_sms.domain.Sms_api" autoMapping="true">
......@@ -24,6 +27,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ID FROM SMS_API t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ID FROM SMS_API t1
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_stock.mapper.Stock_fixed_putaway_stratMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Stock_fixed_putaway_stratResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CATEGORY_ID, t11.NAME AS CATEGORY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.FIXED_LOCATION_ID, t21.NAME AS FIXED_LOCATION_ID_TEXT, t1.ID, t1.PRODUCT_ID, t61.NAME AS PRODUCT_ID_TEXT, t1.PUTAWAY_ID, t71.NAME AS PUTAWAY_ID_TEXT, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM STOCK_FIXED_PUTAWAY_STRAT t1 LEFT JOIN PRODUCT_CATEGORY t11 ON t1.CATEGORY_ID = t11.ID LEFT JOIN STOCK_LOCATION t21 ON t1.FIXED_LOCATION_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PRODUCT_PRODUCT t51 ON t1.PRODUCT_ID = t51.ID LEFT JOIN PRODUCT_TEMPLATE t61 ON t51.PRODUCT_TMPL_ID = t61.ID LEFT JOIN PRODUCT_PUTAWAY t71 ON t1.PUTAWAY_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Stock_fixed_putaway_stratResultMap" type="cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_fixed_putaway_strat" autoMapping="true">
......@@ -92,6 +95,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CATEGORY_ID, t11.NAME AS CATEGORY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.FIXED_LOCATION_ID, t21.NAME AS FIXED_LOCATION_ID_TEXT, t1.ID, t1.PRODUCT_ID, t61.NAME AS PRODUCT_ID_TEXT, t1.PUTAWAY_ID, t71.NAME AS PUTAWAY_ID_TEXT, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM STOCK_FIXED_PUTAWAY_STRAT t1 LEFT JOIN PRODUCT_CATEGORY t11 ON t1.CATEGORY_ID = t11.ID LEFT JOIN STOCK_LOCATION t21 ON t1.FIXED_LOCATION_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PRODUCT_PRODUCT t51 ON t1.PRODUCT_ID = t51.ID LEFT JOIN PRODUCT_TEMPLATE t61 ON t51.PRODUCT_TMPL_ID = t61.ID LEFT JOIN PRODUCT_PUTAWAY t71 ON t1.PUTAWAY_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CATEGORY_ID, t11.NAME AS CATEGORY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.FIXED_LOCATION_ID, t21.NAME AS FIXED_LOCATION_ID_TEXT, t1.ID, t1.PRODUCT_ID, t61.NAME AS PRODUCT_ID_TEXT, t1.PUTAWAY_ID, t71.NAME AS PUTAWAY_ID_TEXT, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UID_TEXT FROM STOCK_FIXED_PUTAWAY_STRAT t1 LEFT JOIN PRODUCT_CATEGORY t11 ON t1.CATEGORY_ID = t11.ID LEFT JOIN STOCK_LOCATION t21 ON t1.FIXED_LOCATION_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PRODUCT_PRODUCT t51 ON t1.PRODUCT_ID = t51.ID LEFT JOIN PRODUCT_TEMPLATE t61 ON t51.PRODUCT_TMPL_ID = t61.ID LEFT JOIN PRODUCT_PUTAWAY t71 ON t1.PUTAWAY_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_stock.mapper.Stock_inventory_lineMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Stock_inventory_lineResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.COMPANY_ID, t131.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.ID, t1.INVENTORY_ID, t31.NAME AS INVENTORY_ID_TEXT, t31.LOCATION_ID AS INVENTORY_LOCATION_ID, t1.LOCATION_ID, t51.NAME AS LOCATION_ID_TEXT, t1.PACKAGE_ID, t11.NAME AS PACKAGE_ID_TEXT, t1.PARTNER_ID, t41.NAME AS PARTNER_ID_TEXT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TRACKING AS PRODUCT_TRACKING, t21.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_ID, t21.NAME AS PRODUCT_UOM_ID_TEXT, t1.PROD_LOT_ID, t141.NAME AS PROD_LOT_ID_TEXT, t31.STATE, t1.THEORETICAL_QTY, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_INVENTORY_LINE t1 LEFT JOIN STOCK_QUANT_PACKAGE t11 ON t1.PACKAGE_ID = t11.ID LEFT JOIN UOM_UOM t21 ON t1.PRODUCT_UOM_ID = t21.ID LEFT JOIN STOCK_INVENTORY t31 ON t1.INVENTORY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t1.PARTNER_ID = t41.ID LEFT JOIN STOCK_LOCATION t51 ON t1.LOCATION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_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 RES_COMPANY t121 ON t1.COMPANY_ID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN STOCK_PRODUCTION_LOT t141 ON t1.PROD_LOT_ID = t141.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Stock_inventory_lineResultMap" type="cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_inventory_line" autoMapping="true">
......@@ -141,6 +144,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t131.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.ID, t1.INVENTORY_ID, t31.NAME AS INVENTORY_ID_TEXT, t31.LOCATION_ID AS INVENTORY_LOCATION_ID, t1.LOCATION_ID, t51.NAME AS LOCATION_ID_TEXT, t1.PACKAGE_ID, t11.NAME AS PACKAGE_ID_TEXT, t1.PARTNER_ID, t41.NAME AS PARTNER_ID_TEXT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TRACKING AS PRODUCT_TRACKING, t21.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_ID, t21.NAME AS PRODUCT_UOM_ID_TEXT, t1.PROD_LOT_ID, t141.NAME AS PROD_LOT_ID_TEXT, t31.STATE, t1.THEORETICAL_QTY, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_INVENTORY_LINE t1 LEFT JOIN STOCK_QUANT_PACKAGE t11 ON t1.PACKAGE_ID = t11.ID LEFT JOIN UOM_UOM t21 ON t1.PRODUCT_UOM_ID = t21.ID LEFT JOIN STOCK_INVENTORY t31 ON t1.INVENTORY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t1.PARTNER_ID = t41.ID LEFT JOIN STOCK_LOCATION t51 ON t1.LOCATION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_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 RES_COMPANY t121 ON t1.COMPANY_ID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN STOCK_PRODUCTION_LOT t141 ON t1.PROD_LOT_ID = t141.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t131.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t91.NAME AS CREATE_UID_TEXT, t1.ID, t1.INVENTORY_ID, t31.NAME AS INVENTORY_ID_TEXT, t31.LOCATION_ID AS INVENTORY_LOCATION_ID, t1.LOCATION_ID, t51.NAME AS LOCATION_ID_TEXT, t1.PACKAGE_ID, t11.NAME AS PACKAGE_ID_TEXT, t1.PARTNER_ID, t41.NAME AS PARTNER_ID_TEXT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_QTY, t71.TRACKING AS PRODUCT_TRACKING, t21.CATEGORY_ID AS PRODUCT_UOM_CATEGORY_ID, t1.PRODUCT_UOM_ID, t21.NAME AS PRODUCT_UOM_ID_TEXT, t1.PROD_LOT_ID, t141.NAME AS PROD_LOT_ID_TEXT, t31.STATE, t1.THEORETICAL_QTY, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_INVENTORY_LINE t1 LEFT JOIN STOCK_QUANT_PACKAGE t11 ON t1.PACKAGE_ID = t11.ID LEFT JOIN UOM_UOM t21 ON t1.PRODUCT_UOM_ID = t21.ID LEFT JOIN STOCK_INVENTORY t31 ON t1.INVENTORY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t1.PARTNER_ID = t41.ID LEFT JOIN STOCK_LOCATION t51 ON t1.LOCATION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.CREATE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_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 RES_COMPANY t121 ON t1.COMPANY_ID = t121.ID LEFT JOIN RES_PARTNER t131 ON t121.PARTNER_ID = t131.ID LEFT JOIN STOCK_PRODUCTION_LOT t141 ON t1.PROD_LOT_ID = t141.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_stock.mapper.Stock_return_picking_lineMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Stock_return_picking_lineResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.MOVE_ID, t51.NAME AS MOVE_ID_TEXT, t1.PRODUCT_ID, t21.NAME AS PRODUCT_ID_TEXT, t1.QUANTITY, t1.TO_REFUND, t51.PRODUCT_UOM AS UOM_ID, t1.WIZARD_ID, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM STOCK_RETURN_PICKING_LINE t1 LEFT JOIN PRODUCT_PRODUCT t11 ON t1.PRODUCT_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t11.PRODUCT_TMPL_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 STOCK_MOVE t51 ON t1.MOVE_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 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Stock_return_picking_lineResultMap" type="cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_return_picking_line" autoMapping="true">
......@@ -82,6 +85,16 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.MOVE_ID, t51.NAME AS MOVE_ID_TEXT, t1.PRODUCT_ID, t21.NAME AS PRODUCT_ID_TEXT, t1.QUANTITY, t1.TO_REFUND, t51.PRODUCT_UOM AS UOM_ID, t1.WIZARD_ID, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM STOCK_RETURN_PICKING_LINE t1 LEFT JOIN PRODUCT_PRODUCT t11 ON t1.PRODUCT_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t11.PRODUCT_TMPL_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 STOCK_MOVE t51 ON t1.MOVE_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
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.MOVE_ID, t51.NAME AS MOVE_ID_TEXT, t1.PRODUCT_ID, t21.NAME AS PRODUCT_ID_TEXT, t1.QUANTITY, t1.TO_REFUND, t51.PRODUCT_UOM AS UOM_ID, t1.WIZARD_ID, t1.WRITE_DATE, t1.WRITE_UID, t71.NAME AS WRITE_UID_TEXT FROM STOCK_RETURN_PICKING_LINE t1 LEFT JOIN PRODUCT_PRODUCT t11 ON t1.PRODUCT_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t11.PRODUCT_TMPL_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 STOCK_MOVE t51 ON t1.MOVE_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
]]>
</sql>
</mapper>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册