|
@@ -266,7 +266,7 @@
|
|
IFNULL(paw.sum_payamount,0) sumPayamount,
|
|
IFNULL(paw.sum_payamount,0) sumPayamount,
|
|
pba.state as state,
|
|
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,
|
|
(select label from pay_sys_dict where value = pba.state and type='客户状态' and site_id = #{siteId} and customer_id = #{customerId}) stateName,
|
|
- rech.balance as remaining,
|
|
|
|
|
|
+ IFNULL(rech.balance,0) as remaining,
|
|
<!-- dt.remaining ,-->
|
|
<!-- dt.remaining ,-->
|
|
(select label from pay_sys_dict where value = pba.idtype and type='证件类型' and site_id = #{siteId} and customer_id = #{customerId}) idTypeName,
|
|
(select label from pay_sys_dict where value = pba.idtype and type='证件类型' and site_id = #{siteId} and customer_id = #{customerId}) idTypeName,
|
|
pba.accountnumber,
|
|
pba.accountnumber,
|
|
@@ -560,7 +560,7 @@
|
|
where b.reading > 0 and b.customer_id=#{customerId} and b.site_id=#{siteId}
|
|
where b.reading > 0 and b.customer_id=#{customerId} and b.site_id=#{siteId}
|
|
GROUP BY b.watermeter_id)
|
|
GROUP BY b.watermeter_id)
|
|
AS c WHERE a.watermeter_id=c.watermeter_id AND a.read_date = c.read_date) rd on rd.watermeter_id = scd.id
|
|
AS c WHERE a.watermeter_id=c.watermeter_id AND a.read_date = c.read_date) rd on rd.watermeter_id = scd.id
|
|
- where scd.customer_id = #{customerId}
|
|
|
|
|
|
+ where scd.customer_id = #{customerId} and scd.account_id is not null
|
|
<if test="queryInfo != null and queryInfo != ''">
|
|
<if test="queryInfo != null and queryInfo != ''">
|
|
and (
|
|
and (
|
|
scd.metercode like concat('%',#{queryInfo,jdbcType=VARCHAR} ,'%')
|
|
scd.metercode like concat('%',#{queryInfo,jdbcType=VARCHAR} ,'%')
|