|
@@ -61,8 +61,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
|
|
|
- public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt) {
|
|
|
- ScenePlus scenePlus = scenePlusService.getScenePlusByNum(sceneCode);
|
|
|
+ public void updateSceneStatus(String sceneCode, int sceneStatus, String path, Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt, Integer payStatus) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("sceneCode", sceneCode);
|
|
|
params.put("status", sceneStatus);
|
|
@@ -74,11 +73,11 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
}
|
|
|
params.put("shootCount", scenePlusExt.getShootCount());
|
|
|
params.put("mixture", scenePlusExt.getMixture() == CommonStatus.NO.code().intValue() ? false : true);
|
|
|
- params.put("payStatus", scenePlus.getPayStatus());
|
|
|
+ params.put("payStatus", payStatus);
|
|
|
rabbitMqProducer.sendByWorkQueue(updateScene, params);
|
|
|
}
|
|
|
|
|
|
- public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt) {
|
|
|
+ public void syncBuildResult(String sceneNum, String dataSource,Date createTime, Date algorithmTime, ScenePlusExt scenePlusExt, Integer payStatus) {
|
|
|
log.info("激光转台相机构建结果 同步 请求 ");
|
|
|
try {
|
|
|
String jgPath = dataSource;
|
|
@@ -110,7 +109,7 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
}
|
|
|
FileUtils.copyFile(dataSource + "/results/laserData", jgPath, true);
|
|
|
|
|
|
- updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime, scenePlusExt);
|
|
|
+ updateSceneStatus(sceneNum, 2, jgPath + File.separator + "laserData",createTime, algorithmTime, scenePlusExt, payStatus);
|
|
|
} catch (Exception e) {
|
|
|
log.error("激光转台相机同步失败", e);
|
|
|
}
|
|
@@ -126,7 +125,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));
|
|
@@ -149,10 +148,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())){
|
|
@@ -171,6 +171,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);
|
|
|
}
|
|
|
|