From 7b43c04dd530bdd193e0cf02c4e19ba7c2ee2c11 Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期三, 11 五月 2022 10:41:31 +0800
Subject: [PATCH] 设备归属

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

diff --git a/dao/src/main/resources/mapper/AirDataMapper.xml b/dao/src/main/resources/mapper/AirDataMapper.xml
index ceab21a..889c5c3 100644
--- a/dao/src/main/resources/mapper/AirDataMapper.xml
+++ b/dao/src/main/resources/mapper/AirDataMapper.xml
@@ -31,12 +31,6 @@
         <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
     </resultMap>
 
-    <select id="listAirEquipmentMAC" resultType="java.lang.String">
-        SELECT DISTINCT device_mac
-        FROM air_data
-    </select>
-
-
     <select id="listAirId" resultType="java.lang.Long">
         SELECT
         MAX(t1.id) AS air_id
@@ -80,10 +74,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