From 2f3d783999935f06228705e75fac26ebf099bf87 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期五, 15 四月 2022 18:02:14 +0800
Subject: [PATCH] fix
---
dao/src/main/resources/mapper/LightReportErrorMapper.xml | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dao/src/main/resources/mapper/LightReportErrorMapper.xml b/dao/src/main/resources/mapper/LightReportErrorMapper.xml
index c578b23..a9dff15 100644
--- a/dao/src/main/resources/mapper/LightReportErrorMapper.xml
+++ b/dao/src/main/resources/mapper/LightReportErrorMapper.xml
@@ -21,7 +21,9 @@
t2.pole_name
FROM
light_report_error t1
- LEFT JOIN pole t2 USING ( device_code )
+ LEFT JOIN pole_binding t2 ON t1.device_code = t2.device_code
+ AND t2.device_type = 0
+ LEFT JOIN pole t3 ON t3.id = t2.pole_id
<where>
<if test="keyword != null and keyword != ''">
AND (
@@ -29,6 +31,9 @@
OR t2.pole_name LIKE CONCAT('%', #{keyword},'%')
)
</if>
+ <if test="userid != null">
+ AND (t3.user_id = #{userid} OR t3.client_id = #{userid})
+ </if>
</where>
ORDER BY t1.light_report_error_id DESC
</select>
--
Gitblit v1.9.3