2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-04-22 f8d5a58c5536b72117c342e5a22bd44aa6320c23
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}), '%')