|
@@ -45,18 +45,11 @@ public class SceneCommonService {
|
|
|
* 生成新的dataSouce
|
|
|
*/
|
|
|
public String getNewDataSource(String oldDataSource){
|
|
|
- if(true){
|
|
|
- return oldDataSource;
|
|
|
- }
|
|
|
|
|
|
String newDataSource = null;
|
|
|
if(StringUtils.isBlank(oldDataSource)){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400006,ResultCode.FAILURE_MSG_400006);
|
|
|
}
|
|
|
- File oldDataSouceFile = new File(oldDataSource);
|
|
|
- if(!oldDataSouceFile.exists()){
|
|
|
- throw new BusinessException(ResultCode.FAILURE_CODE_400006,ResultCode.FAILURE_MSG_400006);
|
|
|
- }
|
|
|
if(!oldDataSource.contains("/")){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400006,ResultCode.FAILURE_MSG_400006);
|
|
|
}
|
|
@@ -73,7 +66,7 @@ public class SceneCommonService {
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400006,ResultCode.FAILURE_MSG_400006);
|
|
|
}
|
|
|
newDataSource = newDataSource.replace(snCodeTime.split("_")[1],time);
|
|
|
- this.copyFdage(oldDataSource,newDataSource,time);
|
|
|
+ //this.copyFdage(oldDataSource,newDataSource,time);
|
|
|
}
|
|
|
if(newDataSource == null){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400006,ResultCode.FAILURE_MSG_400006);
|