| | |
| | | ardChannel.setDeviceId(camera.getId()); |
| | | List<ArdChannel> ardChannels = ardChannelMapper.selectArdChannelList(ardChannel); |
| | | if (ardChannels != null) { |
| | | ardChannels.stream().sorted(); |
| | | camera.setChannelList(ardChannels); |
| | | } |
| | | Map<String, Object> cameraMap = ArdTool.convertEntityToMap(camera); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getCamerasByDeptId(Long deptId) { |
| | | List<Map<String, Object>> result = ardCamerasMapper.getCamerasByDeptId(deptId); |
| | | public List<Map<String, Object>> getCamerasByDeptId(Long deptId,String userId) { |
| | | List<Map<String, Object>> result = ardCamerasMapper.getCamerasByDeptId(deptId,userId); |
| | | return result; |
| | | } |
| | | |