|
@@ -1329,6 +1329,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public Long getCountByCameraId(Long cameraId) {
|
|
|
+ LambdaQueryWrapper<ScenePro> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(ScenePro::getCameraId,cameraId);
|
|
|
+ wrapper.eq(ScenePro::getIsUpgrade,0);
|
|
|
+ wrapper.in(ScenePro::getStatus,0,-2);
|
|
|
+ return this.count(wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public Long getSpaceSumByCameraId(Long cameraId) {
|
|
|
return this.getBaseMapper().getSpaceSumByCameraId(cameraId);
|
|
|
}
|