|
@@ -2,6 +2,7 @@ package com.fdkankan.contro.service.impl;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.fdkankan.common.constant.CommonStatus;
|
|
|
import com.fdkankan.common.util.DateUtil;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.contro.entity.Camera;
|
|
@@ -19,6 +20,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
import java.util.Date;
|
|
@@ -57,11 +59,11 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
@Value("${4dkk.laserService.cloud-point-fyun-path}")
|
|
|
private String cloudPointFyunPath;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
|
|
|
- public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime, Integer shootCount, Integer payStatus) {
|
|
|
+ public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("sceneCode", sceneCode);
|
|
|
params.put("status", sceneStatus);
|
|
@@ -73,10 +75,13 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
}
|
|
|
params.put("shootCount", shootCount);
|
|
|
params.put("payStatus", payStatus);
|
|
|
+ params.put("shootCount", scenePlusExt.getShootCount());
|
|
|
+ params.put("mixture", scenePlusExt.getMixture() == CommonStatus.NO.code().intValue() ? false : true);
|
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
|
}
|
|
|
|
|
|
public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime, Integer shootCount, Integer payStatus) {
|
|
|
+ public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt) {
|
|
|
log.info("激光转台相机构建结果 同步 请求 ");
|
|
|
try {
|
|
|
String jgPath = dataSource;
|
|
@@ -109,6 +114,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
FileUtils.copyFile(dataSource + "/results/laserData", jgPath, true);
|
|
|
|
|
|
updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime, shootCount, payStatus);
|
|
|
+ updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime, scenePlusExt);
|
|
|
} catch (Exception e) {
|
|
|
log.error("激光转台相机同步失败", e);
|
|
|
}
|