2021与蓝度共同重构项目,服务端
liuhaonan
2022-05-18 bd8da139decc60e8c7765e375ffda037f5209e3a
dao/src/main/resources/mapper/PoleBindingMapper.xml
@@ -24,8 +24,8 @@
        SELECT t2.*
        FROM `pole_binding` t1
        LEFT JOIN pole t2 ON t1.pole_id = t2.id
        WHERE t1.device_code = #{Mac}
        <where>
            t1.device_code = #{Mac}
            <if test="type != null">
                AND t1.device_type = #{type}
            </if>