Pārlūkot izejas kodu

修复NOTIFY消息更新通道

648540858 1 gadu atpakaļ
vecāks
revīzija
89650c6d89

+ 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);