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