|
@@ -363,9 +363,9 @@
|
|
|
<select id="selectAccountInfo" resultType="com.bz.smart_city.entity.pay.archives.MeterListInfo">
|
|
|
select
|
|
|
device.metercode as "metercode",
|
|
|
- sil.user_name,
|
|
|
- sil.user_phone,
|
|
|
- sil.id_card
|
|
|
+ sil.user_name as accountname,
|
|
|
+ sil.user_phone as telephone,
|
|
|
+ sil.id_card as idcardno
|
|
|
from pay_base_account account
|
|
|
inner join sc_device device on account.id = device.account_id
|
|
|
inner join sc_install_list sil on sil.device_id = device.id
|
|
@@ -389,9 +389,13 @@
|
|
|
account.accountnumber as "accountnumber",
|
|
|
account.calculateway as "calculateway",
|
|
|
account.waterproperty_id as "waterPropertyId",
|
|
|
- device.metercode as "metercode"
|
|
|
+ device.metercode as "metercode",
|
|
|
+ sil.user_name as accountname,
|
|
|
+ sil.user_phone as telephone,
|
|
|
+ sil.id_card as idcardno
|
|
|
from pay_base_account account
|
|
|
inner join sc_device device on account.id = device.account_id
|
|
|
+ inner join sc_install_list sil on sil.device_id = device.id
|
|
|
<where>
|
|
|
device.metercode not in(select metercode from pay_base_customerandmeterrela where businessstate = '1')
|
|
|
<if test="metercode != null">
|