|
@@ -145,7 +145,8 @@
|
|
|
makestaff.staff_name as "makeStaffName",
|
|
makestaff.staff_name as "makeStaffName",
|
|
|
t.make_time,
|
|
t.make_time,
|
|
|
t.flg_valid,
|
|
t.flg_valid,
|
|
|
- t.cp_id
|
|
|
|
|
|
|
+ t.cp_id,
|
|
|
|
|
+ coalesce(tmrp.sum_amt_pay, 0) as "sumAmtPay"
|
|
|
FROM dkic_b.t_mac_other_payable as t
|
|
FROM dkic_b.t_mac_other_payable as t
|
|
|
left join dkic_b.t_mst_supplier as supplier
|
|
left join dkic_b.t_mst_supplier as supplier
|
|
|
on supplier.sup_id = t.object_id and t.object_type in ('对象类型-供应商')
|
|
on supplier.sup_id = t.object_id and t.object_type in ('对象类型-供应商')
|
|
@@ -153,6 +154,7 @@
|
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
|
left join dkic_b.t_mst_staff as makestaff on makestaff.staff_id = t.make_staff
|
|
left join dkic_b.t_mst_staff as makestaff on makestaff.staff_id = t.make_staff
|
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.object_type
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.object_type
|
|
|
|
|
+ left join dkic_b.t_mac_rec_pay as tmrp on tmrp.flg_valid and tmrp.biznis_id = t.payable_id
|
|
|
<include refid="Condition"/>
|
|
<include refid="Condition"/>
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
limit #{end} offset #{start}
|
|
@@ -169,6 +171,7 @@
|
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
|
left join dkic_b.t_mst_staff as makestaff on makestaff.staff_id = t.make_staff
|
|
left join dkic_b.t_mst_staff as makestaff on makestaff.staff_id = t.make_staff
|
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.object_type
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.object_type
|
|
|
|
|
+ left join dkic_b.t_mac_rec_pay as tmrp on tmrp.flg_valid and tmrp.biznis_id = t.payable_id
|
|
|
<include refid="Condition"/>
|
|
<include refid="Condition"/>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -195,7 +198,8 @@
|
|
|
makestaff.staff_name as "makeStaffName",
|
|
makestaff.staff_name as "makeStaffName",
|
|
|
t.make_time,
|
|
t.make_time,
|
|
|
t.flg_valid,
|
|
t.flg_valid,
|
|
|
- t.cp_id
|
|
|
|
|
|
|
+ t.cp_id,
|
|
|
|
|
+ coalesce(tmrp.sum_amt_pay, 0) as "sumAmtPay"
|
|
|
FROM dkic_b.t_mac_other_payable as t
|
|
FROM dkic_b.t_mac_other_payable as t
|
|
|
left join dkic_b.t_mst_supplier as supplier
|
|
left join dkic_b.t_mst_supplier as supplier
|
|
|
on supplier.sup_id = t.object_id and t.object_type in ('对象类型-供应商')
|
|
on supplier.sup_id = t.object_id and t.object_type in ('对象类型-供应商')
|
|
@@ -203,6 +207,7 @@
|
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
|
left join dkic_b.t_mst_staff as makestaff on makestaff.staff_id = t.make_staff
|
|
left join dkic_b.t_mst_staff as makestaff on makestaff.staff_id = t.make_staff
|
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.object_type
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.object_type
|
|
|
|
|
+ left join dkic_b.t_mac_rec_pay as tmrp on tmrp.flg_valid and tmrp.biznis_id = t.payable_id
|
|
|
WHERE payable_id = #{id}::uuid
|
|
WHERE payable_id = #{id}::uuid
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|