|
@@ -88,8 +88,11 @@ public class SceneService implements ISceneService {
|
|
|
}
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(param.getDeptId())){
|
|
|
- List<TmDepartment> sonByDeptId = tmDepartmentService.getSonByDeptId(param.getDeptId());
|
|
|
- List<String> deptIds = sonByDeptId.stream().map(TmDepartment::getId).collect(Collectors.toList());
|
|
|
+ List<String> deptIds = new ArrayList<>();
|
|
|
+ if(param.getSearchType() == 0){
|
|
|
+ List<TmDepartment> sonByDeptId = tmDepartmentService.getSonByDeptId(param.getDeptId());
|
|
|
+ deptIds = sonByDeptId.stream().map(TmDepartment::getId).collect(Collectors.toList());
|
|
|
+ }
|
|
|
deptIds.add(param.getDeptId());
|
|
|
List<TmCamera> tmCameras = tmCameraService.getByDeptIds(deptIds);
|
|
|
Set<String> snCodeSet = tmCameras.parallelStream().map(TmCamera::getCameraSn).collect(Collectors.toSet());
|