2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-02-28 ae455820d8b96accda128907abe47fcd359ad4af
dao/src/main/resources/mapper/MonitorMapper.xml
@@ -49,7 +49,7 @@
    <select id="listMonitorByIds" resultType="com.sandu.ximon.dao.bo.MonitorBo">
        SELECT
        t1.*, t2.pole_id,
        t3.pole_name
        t3.pole_name, t3.province,t3.city,t3.region,t3.address
        FROM
        monitor t1
        LEFT JOIN pole_binding t2 ON t1.device_serial = t2.device_code
@@ -68,7 +68,13 @@
            <if test="bindingState != 2">
                AND t1.binding_state = #{bindingState}
            </if>
            <if test="equipmentState != 2">
                AND t1.equipment_state = #{equipmentState}
            </if>
        </where>
    </select>
    <select id="listMonitorDeviceSerial" resultType="java.lang.String">
        SELECT device_serial FROM monitor;
    </select>
</mapper>