648540858
2022-05-11 f6893cf95b15531dfc45950fea7e780e045ba2ae
src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java
@@ -99,4 +99,9 @@
    @Update("UPDATE device SET online=0")
    int outlineForAll();
    @Select("SELECT * FROM device WHERE online = 1")
    List<Device> getOnlineDevices();
    @Select("SELECT * FROM device WHERE ip = #{host} AND port=${port}")
    Device getDeviceByHostAndPort(String host, int port);
}