|
|
@@ -58,6 +58,8 @@
|
|
|
<result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="cp_id" property="cpId"/>
|
|
|
+ <result column="receivable_residue" property="receivableResidue"/>
|
|
|
+ <result column="receipt_residue" property="receiptResidue"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用条件列 -->
|
|
|
@@ -186,13 +188,17 @@
|
|
|
makestaff.staff_name as "makeStaffName",
|
|
|
t.make_time,
|
|
|
t.flg_valid,
|
|
|
- t.cp_id
|
|
|
+ t.cp_id,
|
|
|
+ tma.receivable_residue,
|
|
|
+ tma.receipt_residue
|
|
|
from dkic_b.t_mac_rec_pay as t
|
|
|
left join dkic_b.t_mst_customer tmc on tmc.cus_id = t.object_id
|
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.rp_type
|
|
|
left join dkic_b.t_mst_org tmo on tmo.org_id = t.org_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_mac_account tma on tma.object_id = t.object_id and tma.object_type in ('对象类型-客户')
|
|
|
+
|
|
|
where t.rp_type in ('收付款类型-收款', '收付款类型-退收款')
|
|
|
<include refid="Condition"/>
|
|
|
<if test="searchText !=null and searchText != ''">
|