|
@@ -55,19 +55,20 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
|
|
|
- public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime) {
|
|
|
+ public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("sceneCode", sceneCode);
|
|
|
params.put("status", sceneStatus);
|
|
|
params.put("version",getSceneVersion(sceneCode));
|
|
|
params.put("createTime", DateUtil.date2String(createTime, null));
|
|
|
+ params.put("algorithmTime", DateUtil.date2String(algorithmTime, null));
|
|
|
if (!ObjectUtils.isEmpty(path)) {
|
|
|
params.put("path", path);
|
|
|
}
|
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
|
}
|
|
|
|
|
|
- public void syncBuildResult(String sceneNum, String dataSource,Date createTime) {
|
|
|
+ public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime) {
|
|
|
log.info("激光转台相机构建结果 同步 请求 ");
|
|
|
try {
|
|
|
String jgPath = dataSource;
|
|
@@ -95,7 +96,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
FileUtils.copyDirectiory(dataSource + "/results/laserData/cover", jgPath + "/extras");
|
|
|
FileUtils.copyFile(dataSource + "/results/laserData", jgPath, true);
|
|
|
|
|
|
- updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime);
|
|
|
+ updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime);
|
|
|
} catch (Exception e) {
|
|
|
log.error("激光转台相机同步失败", e);
|
|
|
}
|