From 6554fd4bf83e50d39fc75f1c4ac3fbf6675f1962 Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期四, 10 十一月 2022 09:28:10 +0800
Subject: [PATCH] changes
---
dao/src/main/resources/mapper/PoleBindingMapper.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dao/src/main/resources/mapper/PoleBindingMapper.xml b/dao/src/main/resources/mapper/PoleBindingMapper.xml
index d23236e..7c6ec6d 100644
--- a/dao/src/main/resources/mapper/PoleBindingMapper.xml
+++ b/dao/src/main/resources/mapper/PoleBindingMapper.xml
@@ -23,9 +23,10 @@
<select id="getPoleByBinding" resultType="com.sandu.ximon.dao.domain.Pole">
SELECT t2.*
FROM `pole_binding` t1
- LEFT JOIN pole t2 ON t1.pole_id = t2.id
+ LEFT JOIN pole t2 ON t1.pole_id = t2.id AND t1.device_type=0
<where>
t1.device_code = #{Mac}
+ AND t1.device_type=0
<if test="type != null">
AND t1.device_type = #{type}
</if>
--
Gitblit v1.9.3