|
@@ -266,7 +266,7 @@
|
|
|
IFNULL(paw.sum_payamount,0) sumPayamount,
|
|
|
pba.state as state,
|
|
|
(select label from pay_sys_dict where value = pba.state and type='客户状态' and site_id = #{siteId} and customer_id = #{customerId}) stateName,
|
|
|
- rech.remaining,
|
|
|
+ rech.balance as remaining,
|
|
|
<!-- dt.remaining ,-->
|
|
|
(select label from pay_sys_dict where value = pba.idtype and type='证件类型' and site_id = #{siteId} and customer_id = #{customerId}) idTypeName,
|
|
|
pba.accountnumber,
|
|
@@ -398,7 +398,7 @@
|
|
|
(select IFNULL(sum(payamount),0) from pay_amount_waterusedamount paw where paw.site_id=#{siteId} and paw.customer_id=#{customerId} and paw.state = 2 and paw.accountnumber = pba.accountnumber) sumPayamount,
|
|
|
#{payment} as sumPayment,
|
|
|
psd2.label as stateName,
|
|
|
- ppr.remaining,
|
|
|
+ ppr.balance as remaining,
|
|
|
<!--(SELECT remaining from pay_pay_rechargeaccount
|
|
|
where account_id=pba.id and site_id=#{siteId} and customer_id=#{customerId})
|
|
|
-
|