浏览代码

修复NOTIFY消息更新通道

648540858 1 年之前
父节点
当前提交
89650c6d89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceChannelMapper.java

+ 1 - 1
src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceChannelMapper.java

@@ -548,7 +548,7 @@ public interface DeviceChannelMapper {
             ", gps_time=#{item.gpsTime}" +
             ", stream_identification=#{item.streamIdentification}" +
             ", channel_type=#{item.channelType}" +
-            " WHERE device_id=#{item.deviceId}" +
+            " WHERE device_db_id = #{item.deviceDbId} and device_id=#{item.deviceId}" +
             "</foreach>" +
             "</script>"})
     int batchUpdateForNotify(List<DeviceChannel> updateChannels);