|
@@ -688,20 +688,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
|
|
|
}
|
|
|
|
|
|
- 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);
|
|
|
- }
|
|
|
String newNum = scene3dNumService.generateSceneNum(detailEntity.getType());
|
|
|
String title = scenePro == null ? scenePlus.getTitle() : scenePro.getSceneName();
|
|
|
String newTitle = title.concat("(copy)");
|