2021与蓝度共同重构项目,服务端
liuhaonan
2022-05-11 7b43c04dd530bdd193e0cf02c4e19ba7c2ee2c11
dao/src/main/resources/mapper/IPBroadcastMapper.xml
@@ -19,15 +19,18 @@
    </sql>
    <select id="listAll" resultType="com.sandu.ximon.dao.domain.BroadcastTerminalV2Entity">
        SELECT
        a.*, b.pole_name
        t1.*, t3.pole_name
        FROM
        broadcast_v2_terminal a
        LEFT JOIN pole b ON a.streetlight_id = b.id
        WHERE
        1 = 1
        <if test="terminalName != null and terminalName != ''">
            AND a.terminal_name like '%${terminalName}%'
        </if>
        broadcast_v2_terminal t1
        LEFT JOIN pole_binding t2 ON t1.id = t2.device_code
        AND t2.device_type = 5
        LEFT JOIN pole t3 ON t3.id = t2.pole_id
        <where>
            <if test="clientId != null">
                AND (t3.user_id = #{clientId} OR t3.client_id = #{clientId})
            </if>
        </where>
    </select>
    <select id="getBroadcastTerminalList" resultType="com.sandu.ximon.dao.bo.BroadcastTerminalV2EntityBo">