|
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
import java.io.File;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
@@ -54,11 +55,11 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
@Value("${4dkk.laserService.cloud-point-fyun-path}")
|
|
@Value("${4dkk.laserService.cloud-point-fyun-path}")
|
|
private String cloudPointFyunPath;
|
|
private String cloudPointFyunPath;
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private FYunFileServiceInterface fYunFileService;
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
|
|
|
|
- public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime, Integer shootCount) {
|
|
|
|
|
|
+ public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt) {
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
params.put("sceneCode", sceneCode);
|
|
params.put("sceneCode", sceneCode);
|
|
params.put("status", sceneStatus);
|
|
params.put("status", sceneStatus);
|
|
@@ -68,11 +69,12 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
if (!ObjectUtils.isEmpty(path)) {
|
|
if (!ObjectUtils.isEmpty(path)) {
|
|
params.put("path", path);
|
|
params.put("path", path);
|
|
}
|
|
}
|
|
- params.put("shootCount", shootCount);
|
|
|
|
|
|
+ params.put("shootCount", scenePlusExt.getShootCount());
|
|
|
|
+ params.put("mixture", scenePlusExt.getMixture());
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
}
|
|
}
|
|
|
|
|
|
- public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime, Integer shootCount) {
|
|
|
|
|
|
+ public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt) {
|
|
log.info("激光转台相机构建结果 同步 请求 ");
|
|
log.info("激光转台相机构建结果 同步 请求 ");
|
|
try {
|
|
try {
|
|
String jgPath = dataSource;
|
|
String jgPath = dataSource;
|
|
@@ -104,7 +106,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
}
|
|
}
|
|
FileUtils.copyFile(dataSource + "/results/laserData", jgPath, true);
|
|
FileUtils.copyFile(dataSource + "/results/laserData", jgPath, true);
|
|
|
|
|
|
- updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime, shootCount);
|
|
|
|
|
|
+ updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime, scenePlusExt);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("激光转台相机同步失败", e);
|
|
log.error("激光转台相机同步失败", e);
|
|
}
|
|
}
|