|
@@ -21,10 +21,7 @@ import com.fdkankan.ucenter.mapper.IScenePlusMapper;
|
|
import com.fdkankan.ucenter.service.*;
|
|
import com.fdkankan.ucenter.service.*;
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
-import java.util.Date;
|
|
|
|
-import java.util.HashMap;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Objects;
|
|
|
|
|
|
+import java.util.*;
|
|
import java.util.concurrent.CompletableFuture;
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
|
|
|
import com.fdkankan.ucenter.vo.ResponseScene;
|
|
import com.fdkankan.ucenter.vo.ResponseScene;
|
|
@@ -106,9 +103,12 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<ScenePlus> getListByCameraIds(List<Long> cameraIds) {
|
|
public List<ScenePlus> getListByCameraIds(List<Long> cameraIds) {
|
|
- LambdaQueryWrapper<ScenePlus> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
- wrapper.in(ScenePlus::getCameraId,cameraIds);
|
|
|
|
- return this.list(wrapper);
|
|
|
|
|
|
+ if(cameraIds.size() >0){
|
|
|
|
+ LambdaQueryWrapper<ScenePlus> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ wrapper.in(ScenePlus::getCameraId,cameraIds);
|
|
|
|
+ return this.list(wrapper);
|
|
|
|
+ }
|
|
|
|
+ return new ArrayList<>();
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|