From f8d5a58c5536b72117c342e5a22bd44aa6320c23 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期五, 22 四月 2022 19:10:02 +0800
Subject: [PATCH] fix

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

diff --git a/dao/src/main/resources/mapper/MonitorMapper.xml b/dao/src/main/resources/mapper/MonitorMapper.xml
index 3bbbc46..af913d0 100644
--- a/dao/src/main/resources/mapper/MonitorMapper.xml
+++ b/dao/src/main/resources/mapper/MonitorMapper.xml
@@ -56,6 +56,12 @@
         AND t2.device_type = 7
         LEFT JOIN pole t3 ON t3.id = t2.pole_id
         <where>
+            <if test="list != null">
+                t1.device_serial IN
+                <foreach collection="list" open="(" close=")" separator="," item="deviceCode">
+                    #{deviceCode}
+                </foreach>
+            </if>
             <if test="keyword != null and keyword != ''">
                 AND t3.pole_name LIKE CONCAT(CONCAT('%', #{keyword}), '%')
                 OR t1.device_serial LIKE CONCAT(CONCAT('%', #{keyword}), '%')

--
Gitblit v1.9.3