Compare commits

..

1 Commits

Author SHA1 Message Date
WangXuewen
4c75e165d1
Pre Merge pull request !34 from WangXuewen/master 2025-05-11 14:00:53 +00:00
2 changed files with 69 additions and 67 deletions

View File

@ -120,6 +120,7 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
List<DeviceChannel> updateChannels = new ArrayList<>(); List<DeviceChannel> updateChannels = new ArrayList<>();
HashMap<String, DeviceChannel> channelsInStore = new HashMap<>(); HashMap<String, DeviceChannel> channelsInStore = new HashMap<>();
int result = 0; int result = 0;
if (channels != null && !channels.isEmpty()) {
List<DeviceChannel> channelList = channelMapper.queryChannelsByDeviceDbId(device.getId()); List<DeviceChannel> channelList = channelMapper.queryChannelsByDeviceDbId(device.getId());
if (channelList.isEmpty()) { if (channelList.isEmpty()) {
for (DeviceChannel channel : channels) { for (DeviceChannel channel : channels) {
@ -199,6 +200,7 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
result += channelMapper.batchUpdate(updateChannelList); result += channelMapper.batchUpdate(updateChannelList);
} }
} }
}
return result; return result;
} }

View File

@ -60,7 +60,7 @@ export const constantRoutes = [
component: Layout, component: Layout,
redirect: '/live', redirect: '/live',
children: [{ children: [{
path: '', path: 'live',
name: 'Live', name: 'Live',
component: () => import('@/views/live/index'), component: () => import('@/views/live/index'),
meta: { title: '分屏监控', icon: 'live' } meta: { title: '分屏监控', icon: 'live' }