|
@@ -145,6 +145,8 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
LambdaQueryWrapper<ScenePro> wrapper = new LambdaQueryWrapper<>();
|
|
|
LambdaQueryWrapper<ScenePlus> plusWr = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(ScenePro::getStatus,-2);
|
|
|
+ plusWr.eq(ScenePlus::getSceneStatus,-2);
|
|
|
Long totalSpace = cameraDetail.getTotalSpace();
|
|
|
UserIncrement userIncrement = userIncrementService.getByCameraId(cameraId);
|
|
|
if(userIncrement!=null){
|
|
@@ -225,7 +227,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
private void getSceneLockedIds(List<Long> lockedIds , List<ScenePro> list, Long beyondSpace, Long accumulateSpace){
|
|
|
if (list != null && list.size() > 0){
|
|
|
for (ScenePro scenePro : list){
|
|
|
- accumulateSpace += scenePro.getSpace();
|
|
|
+ accumulateSpace += scenePro.getSpace()== null ? 0 : scenePro.getSpace();
|
|
|
if (accumulateSpace.compareTo(beyondSpace) > 0){
|
|
|
break;
|
|
|
}
|
|
@@ -239,7 +241,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
HashMap<Long, ScenePlusExt> byPlusIds = scenePlusExtService.getByPlusIds(plusIds);
|
|
|
for (ScenePlus scenePlus : list){
|
|
|
ScenePlusExt scenePlusExt = byPlusIds.get(scenePlus.getId());
|
|
|
- accumulateSpace += scenePlusExt.getSpace();
|
|
|
+ accumulateSpace += scenePlusExt.getSpace() == null ? 0 : scenePlusExt.getSpace();
|
|
|
if (accumulateSpace.compareTo(beyondSpace) > 0){
|
|
|
break;
|
|
|
}
|