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}), '%')