From 1191ee2f17238364542ec93f53a201abadc619dc Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期四, 05 五月 2022 18:22:40 +0800
Subject: [PATCH] Changes

---
 dao/src/main/resources/mapper/LightTaskMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/dao/src/main/resources/mapper/LightTaskMapper.xml b/dao/src/main/resources/mapper/LightTaskMapper.xml
index cebc022..fcc4895 100644
--- a/dao/src/main/resources/mapper/LightTaskMapper.xml
+++ b/dao/src/main/resources/mapper/LightTaskMapper.xml
@@ -39,4 +39,23 @@
             AND (t3.user_id = #{userid} OR t3.client_id = #{userid})
         </if>
     </select>
+    <select id="listLightTaskByTaskId" resultType="com.sandu.ximon.dao.bo.PoleTaskLightPowerBo"
+            parameterType="java.lang.Long">
+        SELECT
+        t1.id ,
+        t2.task_id,
+        t4.power1,
+        t4.power2
+        FROM
+        pole t1
+        LEFT JOIN light_task_pole_relation t2 ON t1.id = t2.pole_id
+        LEFT JOIN pole_binding t3 ON t3.device_code = t1.device_code
+        LEFT JOIN light t4 ON t4.device_code = t1.device_code
+        WHERE
+        t3.device_type=0
+        <if test=" taskId != null">
+            AND
+            task_id = taskId
+        </if>
+    </select>
 </mapper>

--
Gitblit v1.9.3