|
@@ -58,7 +58,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
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, Integer shootCount, Integer payStatus) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("sceneCode", sceneCode);
|
|
|
params.put("status", sceneStatus);
|
|
@@ -69,10 +69,11 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
params.put("path", path);
|
|
|
}
|
|
|
params.put("shootCount", shootCount);
|
|
|
+ params.put("payStatus", payStatus);
|
|
|
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, Integer shootCount, Integer payStatus) {
|
|
|
log.info("激光转台相机构建结果 同步 请求 ");
|
|
|
try {
|
|
|
String jgPath = dataSource;
|
|
@@ -104,7 +105,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
}
|
|
|
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, shootCount, payStatus);
|
|
|
} catch (Exception e) {
|
|
|
log.error("激光转台相机同步失败", e);
|
|
|
}
|
|
@@ -120,7 +121,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public void saveScene(ScenePlus scenePlus, JSONObject fdageJson, Camera cameraEntity, String phone, boolean rebuild) {
|
|
|
+ public void saveScene(ScenePlus scenePlus, JSONObject fdageJson, Camera cameraEntity, String phone, boolean rebuild, Integer payStatus) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("childName", cameraEntity.getChildName());
|
|
|
params.put("createTime", DateUtil.date2String(scenePlus.getCreateTime(), null));
|
|
@@ -142,10 +143,11 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
if(Objects.nonNull(fdageJson)){
|
|
|
params.put("location", fdageJson.getInteger("location"));
|
|
|
}
|
|
|
+ params.put("payStatus", payStatus);
|
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
|
}
|
|
|
|
|
|
- public void saveScene(ScenePro scenePro, String scenePassword, Camera cameraEntity, String phone, boolean rebuild) {
|
|
|
+ public void saveScene(ScenePro scenePro, String scenePassword, Camera cameraEntity, String phone, boolean rebuild, Integer payStatus) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("childName", cameraEntity.getChildName());
|
|
|
if(ObjectUtils.isEmpty(scenePro.getCreateTime())){
|
|
@@ -164,6 +166,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
params.put("version",getSceneVersion(scenePro.getNum()));
|
|
|
params.put("title", scenePro.getSceneName());
|
|
|
params.put("userId", scenePro.getUserId());
|
|
|
+ params.put("payStatus", payStatus);
|
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
|
}
|
|
|
|