From c8ce26aac0004e249a0cef35fe15b2ddb280ad25 Mon Sep 17 00:00:00 2001
From: liuhaonan <konodioda2333@vip.qq.com>
Date: 星期三, 27 四月 2022 15:51:10 +0800
Subject: [PATCH] 大气数据推送到LED

---
 dao/src/main/resources/mapper/AirDataMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dao/src/main/resources/mapper/AirDataMapper.xml b/dao/src/main/resources/mapper/AirDataMapper.xml
index ceab21a..23b0f61 100644
--- a/dao/src/main/resources/mapper/AirDataMapper.xml
+++ b/dao/src/main/resources/mapper/AirDataMapper.xml
@@ -80,10 +80,10 @@
         from pole_binding t1
         left join pole t2 on t1.pole_id = t2.id
         where t1.device_type = 3
-        t1.pole_id = #{poleId}
-        <if test="userId != null">
+        and t1.pole_id = #{poleId}
+        <if test="clientId != null">
             AND (t2.user_id = #{clientId} OR t2.client_id = #{clientId})
         </if>
 
-</select>
-        </mapper>
\ No newline at end of file
+    </select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3