存储部分使用sqlite代替redis-2

This commit is contained in:
panlinlin
2020-12-31 13:22:22 +08:00
parent 3d83775468
commit a25f7e4f99
2 changed files with 5 additions and 3 deletions

View File

@@ -51,7 +51,6 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
DeviceChannel deviceChannel = deviceChannelMapper.queryChannel(streamInfo.getDeviceID(), streamInfo.getCahnnelId());
if (deviceChannel != null) {
deviceChannel.setStreamId(null);
deviceChannel.setPlay(false);
deviceChannel.setDeviceId(streamInfo.getDeviceID());
deviceChannelMapper.update(deviceChannel);
}
@@ -144,7 +143,6 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
DeviceChannel deviceChannel = deviceChannelMapper.queryChannel(streamInfo.getDeviceID(), streamInfo.getCahnnelId());
if (deviceChannel != null) {
deviceChannel.setStreamId(null);
deviceChannel.setPlay(false);
deviceChannel.setDeviceId(streamInfo.getDeviceID());
deviceChannelMapper.update(deviceChannel);
}