|
|
@@ -5,7 +5,7 @@
|
|
|
<!-- 通用设置 -->
|
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- payable_id, payable_no, object_type, object_id, org_id, staff_id, sum_amt_payable, acc_item_id, acc_date, remarks, annex_paths, make_staff, make_time, flg_valid, cp_id
|
|
|
+ payable_id, payable_no, object_type, business_type, object_id, org_id, staff_id, sum_amt_payable, acc_item_id, acc_date, remarks, annex_paths, make_staff, make_time, flg_valid, cp_id
|
|
|
</sql>
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
@@ -13,6 +13,7 @@
|
|
|
<id column="payable_id" property="payableId"/>
|
|
|
<result column="payable_no" property="payableNo"/>
|
|
|
<result column="object_type" property="objectType"/>
|
|
|
+ <result column="business_type" property="businessType"/>
|
|
|
<result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
|
|
|
@@ -32,6 +33,7 @@
|
|
|
<id column="payable_id" property="payableId"/>
|
|
|
<result column="payable_no" property="payableNo"/>
|
|
|
<result column="object_type" property="objectType"/>
|
|
|
+ <result column="business_type" property="businessType"/>
|
|
|
<result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
|
|
|
@@ -56,6 +58,9 @@
|
|
|
<if test="objectType != null and objectType != ''">
|
|
|
AND t.object_type = #{objectType}
|
|
|
</if>
|
|
|
+ <if test="businessType != null and businessType != ''">
|
|
|
+ AND t.business_type = #{businessType}
|
|
|
+ </if>
|
|
|
<if test="objectId != null and objectId != ''">
|
|
|
AND t.object_id = #{objectId}
|
|
|
</if>
|
|
|
@@ -122,6 +127,7 @@
|
|
|
SELECT t.payable_id,
|
|
|
t.payable_no,
|
|
|
t.object_type,
|
|
|
+ t.business_type,
|
|
|
sys.f_get_name_i18n(tdk1.kind_name_i18n, #{i18n}) as "objectTypeName",
|
|
|
t.object_id,
|
|
|
supplier.sup_code as "supCode",
|
|
|
@@ -171,6 +177,7 @@
|
|
|
SELECT t.payable_id,
|
|
|
t.payable_no,
|
|
|
t.object_type,
|
|
|
+ t.business_type,
|
|
|
sys.f_get_name_i18n(tdk1.kind_name_i18n, #{i18n}) as "objectTypeName",
|
|
|
t.object_id,
|
|
|
supplier.sup_code as "supCode",
|
|
|
@@ -223,6 +230,7 @@
|
|
|
<trim suffixOverrides=",">
|
|
|
payable_no,
|
|
|
object_type,
|
|
|
+ business_type,
|
|
|
object_id,
|
|
|
org_id,
|
|
|
staff_id,
|
|
|
@@ -243,6 +251,7 @@
|
|
|
<trim suffixOverrides=",">
|
|
|
#{item.payableNo},
|
|
|
#{item.objectType},
|
|
|
+ #{item.businessType},
|
|
|
#{item.objectId}::uuid,
|
|
|
#{item.orgId}::uuid,
|
|
|
#{item.staffId}::uuid,
|