From ccac77fc264074c74cd1c9cf374f26aae45458db Mon Sep 17 00:00:00 2001
From: liuhaonan <konodioda2333@vip.qq.com>
Date: 星期四, 21 四月 2022 09:48:10 +0800
Subject: [PATCH] 首页
---
dao/src/main/resources/mapper/LightTaskMapper.xml | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dao/src/main/resources/mapper/LightTaskMapper.xml b/dao/src/main/resources/mapper/LightTaskMapper.xml
index 71c63ef..81f9583 100644
--- a/dao/src/main/resources/mapper/LightTaskMapper.xml
+++ b/dao/src/main/resources/mapper/LightTaskMapper.xml
@@ -31,9 +31,11 @@
parameterType="java.lang.Long">
SELECT t1.*
FROM light_task t1
- LEFT JOIN light_task_pole_relation t2 ON t1.task_id = t2.task_id
- LEFT JOIN pole t3 ON t2.pole_id = t3.id
+ LEFT JOIN light_task_pole_relation t2 ON t1.task_id = t2.task_id
+ LEFT JOIN pole t3 ON t2.pole_id = t3.id
WHERE t2.issue_status = 0
- AND (t3.user_id = #{userId} or t3.client_id = #{userId})
+ <if test="userid != null">
+ AND (t3.user_id = #{userid} OR t3.client_id = #{userid})
+ </if>
</select>
</mapper>
--
Gitblit v1.9.3