2021与蓝度共同重构项目,服务端
zhanzhiqin
2022-05-09 52eb3f0befcb397d2fdd645c8d7471d6ee477f87
dao/src/main/resources/mapper/AirDataMapper.xml
@@ -31,12 +31,6 @@
        <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
    </resultMap>
    <select id="listAirEquipmentMAC" resultType="java.lang.String">
        SELECT DISTINCT device_mac
        FROM air_data
    </select>
    <select id="listAirId" resultType="java.lang.Long">
        SELECT
        MAX(t1.id) AS air_id
@@ -80,10 +74,10 @@
        from pole_binding t1
        left join pole t2 on t1.pole_id = t2.id
        where t1.device_type = 3
        t1.pole_id = #{poleId}
        <if test="userId != null">
        and t1.pole_id = #{poleId}
        <if test="clientId != null">
            AND (t2.user_id = #{clientId} OR t2.client_id = #{clientId})
        </if>
</select>
        </mapper>
    </select>
</mapper>