|
@@ -381,7 +381,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
return sceneSourceList;
|
|
|
}
|
|
|
-
|
|
|
@Override
|
|
|
public void copyScene(String sceneNum,String userName) throws Exception {
|
|
|
if(StringUtils.isEmpty(sceneNum)){
|
|
@@ -407,6 +406,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if(user == null || !user.getId().equals(userId) ){
|
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5013, SceneConstant.FAILURE_MSG_5013);
|
|
|
}
|
|
|
+ this.copySceneNoCheck(sceneNum);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void copySceneNoCheck(String sceneNum) throws Exception {
|
|
|
+ ScenePro scenePro = this.getByNum(sceneNum);
|
|
|
+ ScenePlus scenePlus = scenePlusService.getByNum(sceneNum);
|
|
|
+ Long cameraId = scenePro == null ? scenePlus.getCameraId() : scenePro.getCameraId();
|
|
|
CameraDetail detailEntity = cameraDetailService.getByCameraId(cameraId);
|
|
|
if(detailEntity == null){
|
|
|
throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
|
|
@@ -439,7 +447,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
folderScene.setSceneId(newSceneId);
|
|
|
folderSceneService.save(folderScene);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
@Override
|