| | |
| | | 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; |
| | | } |
| | | |