|
@@ -466,7 +466,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
/**
|
|
|
* 兼容,之前迁移,不使用旧snCode 替换新snCode。重写文件
|
|
|
*/
|
|
|
- public synchronized void updateFdageNewDataSource(String oldSnCode,String newSnCode,String dataSource) {
|
|
|
+ public void updateFdageNewDataSource(String oldSnCode,String newSnCode,String dataSource) {
|
|
|
String localPathFdage = null;
|
|
|
try {
|
|
|
newSnCode = newSnCode.toLowerCase();
|
|
@@ -497,9 +497,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
log.error("updateFdage-error:",e);
|
|
|
}finally {
|
|
|
if(localPathFdage != null){
|
|
|
- FileUtil.del(String.format(OssPath.localFdagePath,"home"));
|
|
|
+ FileUtil.del(localPathFdage);
|
|
|
+ FileUtil.del(localPathFdage+".new");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|