Commit 2c7ed82b3ec2ce1bf9719b1a4630429c30cd0a14
1 parent
bdc0f83e
修复缺少的属性
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStorageImpl.java
| @@ -233,8 +233,10 @@ public class VideoManagerStorageImpl implements IVideoManagerStorage { | @@ -233,8 +233,10 @@ public class VideoManagerStorageImpl implements IVideoManagerStorage { | ||
| 233 | if (allChannelMap.containsKey(deviceChannel.getChannelId())) { | 233 | if (allChannelMap.containsKey(deviceChannel.getChannelId())) { |
| 234 | deviceChannel.setStreamId(allChannelMap.get(deviceChannel.getChannelId()).getStreamId()); | 234 | deviceChannel.setStreamId(allChannelMap.get(deviceChannel.getChannelId()).getStreamId()); |
| 235 | deviceChannel.setHasAudio(allChannelMap.get(deviceChannel.getChannelId()).isHasAudio()); | 235 | deviceChannel.setHasAudio(allChannelMap.get(deviceChannel.getChannelId()).isHasAudio()); |
| 236 | + deviceChannel.setUpdateTime(DateUtil.getNow()); | ||
| 236 | updateChannels.add(deviceChannel); | 237 | updateChannels.add(deviceChannel); |
| 237 | }else { | 238 | }else { |
| 239 | + deviceChannel.setCreateTime(DateUtil.getNow()); | ||
| 238 | addChannels.add(deviceChannel); | 240 | addChannels.add(deviceChannel); |
| 239 | } | 241 | } |
| 240 | if (!ObjectUtils.isEmpty(deviceChannel.getParentId())) { | 242 | if (!ObjectUtils.isEmpty(deviceChannel.getParentId())) { |