2021与蓝度共同重构项目,服务端
liuhaonan
2022-11-10 6554fd4bf83e50d39fc75f1c4ac3fbf6675f1962
dao/src/main/resources/mapper/PoleBindingMapper.xml
@@ -23,9 +23,10 @@
    <select id="getPoleByBinding" resultType="com.sandu.ximon.dao.domain.Pole">
        SELECT t2.*
        FROM `pole_binding` t1
        LEFT JOIN pole t2 ON t1.pole_id = t2.id
        WHERE t1.device_code = #{Mac}
        LEFT JOIN pole t2 ON t1.pole_id = t2.id  AND t1.device_type=0
        <where>
            t1.device_code = #{Mac}
            AND t1.device_type=0
            <if test="type != null">
                AND t1.device_type = #{type}
            </if>