Xiaojh 4 سال پیش
والد
کامیت
6bcef0ed2c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      smart-city-platform/src/main/resources/mapper/PayBaseCustomerandmeterrelaMapper.xml

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