|
@@ -385,7 +385,7 @@
|
|
|
account.telephone as telephone,
|
|
|
account.idcardno as idcardno
|
|
|
from pay_base_account account
|
|
|
- inner join sc_device device on account.id = device.account_id
|
|
|
+ inner join sc_device device on account.id = device.account_id and device.customer_id = #{customerId}
|
|
|
<where>
|
|
|
device.metercode not in(select metercode from pay_base_customerandmeterrela where businessstate = '1')
|
|
|
<if test="accountnumber != null">
|