|
@@ -607,6 +607,11 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if((scenePro == null || scenePro.getCameraId() == null ) && (scenePlus== null || scenePlus.getCameraId() == null)){
|
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5005, SceneConstant.FAILURE_MSG_5005);
|
|
|
}
|
|
|
+ Integer status = scenePro == null ? scenePlus.getSceneStatus() :scenePro.getStatus();
|
|
|
+ if(status !=-2){
|
|
|
+ throw new BusinessException(SceneConstant.FAILURE_CODE_5033, SceneConstant.FAILURE_MSG_5033);
|
|
|
+ }
|
|
|
+
|
|
|
// Long cameraId = scenePro == null ? scenePlus.getCameraId() : scenePro.getCameraId();
|
|
|
// Camera camera = cameraService.getById(cameraId);
|
|
|
// if(camera == null){
|