|
@@ -762,6 +762,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
this.save(scenePro);
|
|
this.save(scenePro);
|
|
|
|
|
|
ExecutorService executor = ThreadUtil.newSingleExecutor();
|
|
ExecutorService executor = ThreadUtil.newSingleExecutor();
|
|
|
|
+ try {
|
|
|
|
+
|
|
|
|
+
|
|
CompletableFuture.runAsync(() -> {
|
|
CompletableFuture.runAsync(() -> {
|
|
|
|
|
|
String oldDataSource = scenePro.getDataSource();
|
|
String oldDataSource = scenePro.getDataSource();
|
|
@@ -836,7 +839,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
}, executor).whenComplete((reslut, e) -> {
|
|
}, executor).whenComplete((reslut, e) -> {
|
|
log.info("copy-success-");
|
|
log.info("copy-success-");
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ }catch ( Exception e){
|
|
|
|
+ log.error("copyError",e);
|
|
|
|
+ }
|
|
return scenePro.getId();
|
|
return scenePro.getId();
|
|
}
|
|
}
|
|
private void copyOssAndNas(String oldNum ,String newNum ,String sourcePath,String targetPath){
|
|
private void copyOssAndNas(String oldNum ,String newNum ,String sourcePath,String targetPath){
|