From 20e4636014540c4c27b0d2d337927eed8593d93a Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期三, 07 九月 2022 18:29:31 +0800
Subject: [PATCH] changes

---
 dao/src/main/resources/mapper/LightMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dao/src/main/resources/mapper/LightMapper.xml b/dao/src/main/resources/mapper/LightMapper.xml
index 1cc69c0..26dfb43 100644
--- a/dao/src/main/resources/mapper/LightMapper.xml
+++ b/dao/src/main/resources/mapper/LightMapper.xml
@@ -42,7 +42,8 @@
         t3.light_address AS light_address
         FROM
         light t1
-        LEFT JOIN pole t2 USING ( device_code )
+        LEFT JOIN pole_binding t5 USING ( device_code )
+        LEFT JOIN pole t2 ON t2.id=t5.pole_id
         LEFT JOIN light_task_pole_relation t3 ON t3.pole_id = t2.id
         LEFT JOIN light_task t4 ON t3.task_id = t4.task_id
         <where>

--
Gitblit v1.9.3