From e55c8b0a92eb9715edd90c31dfd4de51a47b588b Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期五, 04 十一月 2022 17:40:08 +0800
Subject: [PATCH] changes
---
dao/src/main/resources/mapper/LightReportErrorMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dao/src/main/resources/mapper/LightReportErrorMapper.xml b/dao/src/main/resources/mapper/LightReportErrorMapper.xml
index cea33d4..bd3db61 100644
--- a/dao/src/main/resources/mapper/LightReportErrorMapper.xml
+++ b/dao/src/main/resources/mapper/LightReportErrorMapper.xml
@@ -52,11 +52,11 @@
light_report_error t1
LEFT JOIN pole t3 ON t1.device_code = t3.device_code
WHERE
- <if test="userid != null">
- t3.client_id = #{userId} OR t3.user_id = #{userId}
- </if>
t1.light_report_error_id IN ( SELECT t.max_id FROM ( SELECT Max( light_report_error.light_report_error_id ) AS
max_id FROM light_report_error GROUP BY light_report_error.device_code ) AS t )
+ <if test="userid != null">
+ AND t3.client_id = #{userId} OR t3.user_id = #{userId}
+ </if>
ORDER BY
t1.create_time DESC
</select>
--
Gitblit v1.9.3