|
@@ -55,6 +55,7 @@ import java.io.File;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -1315,6 +1316,20 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_6003);
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_6003);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 拷贝资源至新的资源路径
|
|
|
|
+ String[] newDataPath = dataSource.split("/");
|
|
|
|
+ newDataPath[4] = newDataPath[4]+"_c";
|
|
|
|
+ String time = com.fdkankan.common.util.DateUtil.date2String(new Date(), com.fdkankan.common.util.DateUtil.YYYYMMDDHHMMSSSSS_DATA_FORMAT);
|
|
|
|
+ newDataPath[5] = newDataPath[5].split("_")[0] + "_" + time;
|
|
|
|
+ String newDataSource = Arrays.stream(newDataPath).collect(Collectors.joining("/"));
|
|
|
|
+ fYunFileService.copyFileInBucket(dataSource,newDataSource);
|
|
|
|
+
|
|
|
|
+ fdageData.put("uuidtime",time);
|
|
|
|
+ fYunFileService.uploadFile(fdageData.toJSONString().getBytes(),newDataSource+"/data.fdage");
|
|
|
|
+
|
|
|
|
+ dataSource = newDataSource;
|
|
|
|
+
|
|
|
|
+
|
|
Long cameraType = 11L;
|
|
Long cameraType = 11L;
|
|
//判断是否转台相机
|
|
//判断是否转台相机
|
|
if (detailEntity.getType() == 9) {
|
|
if (detailEntity.getType() == 9) {
|