|
@@ -328,7 +328,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
space = space == null ? 0 :space;
|
|
|
Long newUseSpace = space + cameraDetail.getUsedSpace();
|
|
|
- Long count = userIncrementService.getValidCountByCameraId(cameraId);
|
|
|
+ Long count = userIncrementService.getValidCountByCameraId(camera.getId());
|
|
|
if(count<=0 && newUseSpace > cameraDetail.getTotalSpace()){
|
|
|
throw new BusinessException(ResultCode.CAMERA_SPACE_ERROR);
|
|
|
}
|