| | |
| | | deviceChannelMapper.update(channel); |
| | | } |
| | | deviceChannelMapper.updateChannelSubCount(deviceId,channel.getParentId()); |
| | | System.out.println("执法记录仪名称 = " + channel.getName()); |
| | | //如果是是执法记录仪 |
| | | if (null!=channel.getName() && channel.getName().contains("执法记录仪")){ |
| | | //更新执法记录仪信息 |
| | |
| | | public int delChannel(String deviceId, String channelId) { |
| | | //查询设备信息 |
| | | DeviceChannel deviceChannel = deviceChannelMapper.queryChannel(deviceId, channelId); |
| | | if (deviceChannel.getName().equals("执法记录仪")){ |
| | | if (deviceChannel.getName().contains("执法记录仪")){ |
| | | //同时删除执法记录仪信息 |
| | | deviceChannelPoliceCameraService.del(deviceId, channelId); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public synchronized boolean insertMobilePosition(MobilePosition mobilePosition) { |
| | | if (mobilePosition.getDeviceName().contains("执法记录仪")){ |
| | | deviceChannelPoliceCameraService.insertNewPositionPoliceCamera(mobilePosition); |
| | | } |
| | | return deviceMobilePositionMapper.insertNewPosition(mobilePosition) > 0; |
| | | } |
| | | |