|
@@ -429,18 +429,13 @@
|
|
account.telephone as telephone,
|
|
account.telephone as telephone,
|
|
account.idcardno as idcardno
|
|
account.idcardno as idcardno
|
|
from pay_base_account account
|
|
from pay_base_account account
|
|
- inner join sc_device device on account.id = device.account_id and device.customer_id = #{customerId}
|
|
|
|
|
|
+ inner join sc_device device on account.id = device.account_id and device.tenant_id = #{tenantId}
|
|
<where>
|
|
<where>
|
|
device.metercode not in(select metercode from pay_base_customerandmeterrela where businessstate = '1')
|
|
device.metercode not in(select metercode from pay_base_customerandmeterrela where businessstate = '1')
|
|
<if test="accountnumber != null">
|
|
<if test="accountnumber != null">
|
|
and account.accountnumber =#{accountnumber}
|
|
and account.accountnumber =#{accountnumber}
|
|
</if>
|
|
</if>
|
|
- <!-- <if test="siteId != null">
|
|
|
|
- and account.site_id = #{siteId}
|
|
|
|
- </if>-->
|
|
|
|
- <if test="customerId != null">
|
|
|
|
- and account.customer_id = #{customerId}
|
|
|
|
- </if>
|
|
|
|
|
|
+
|
|
order by account.create_date desc
|
|
order by account.create_date desc
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|