|
@@ -235,13 +235,16 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if(param.getCompanyId() != null){
|
|
|
List<CameraDetail> details = cameraDetailService.getListByCompanyId(param.getCompanyId());
|
|
|
List<Long> cameraIds = details.stream().map(CameraDetail::getCameraId).collect(Collectors.toList());
|
|
|
- if(param.getCameraIds() == null || param.getCameraIds().size() <=0 ){
|
|
|
+ if(param.getCameraIds() == null || param.getCameraIds().isEmpty()){
|
|
|
param.setCameraIds(cameraIds);
|
|
|
}else {
|
|
|
List<Long> intersection = cameraIds.stream().filter(param.getCameraIds()::contains).collect(Collectors.toList());
|
|
|
param.setCameraIds(intersection);
|
|
|
}
|
|
|
}
|
|
|
+ if(param.getCameraIds() != null || param.getUserIds() != null){
|
|
|
+ param.setNum("empty");
|
|
|
+ }
|
|
|
|
|
|
Page<SceneVo> page = this.getBaseMapper().pageList(new Page<>(param.getPageNum(),param.getPageSize()),param);
|
|
|
List<SceneVo> records = page.getRecords();
|