Xiaojh 4 yıl önce
ebeveyn
işleme
6bcef0ed2c

+ 1 - 1
smart-city-platform/src/main/resources/mapper/PayBaseCustomerandmeterrelaMapper.xml

@@ -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">