|
@@ -105,22 +105,23 @@ public class IFdkkLaserServiceImpl implements IFdkkLaserService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void saveScene(ScenePlus sceneProEntity, String scenePassword, Camera cameraEntity, String phone, boolean rebuild) {
|
|
|
- String url = laserHost + String.format(SAVE_SCENE_URL_TEMPLATE, sceneProEntity.getNum());
|
|
|
+
|
|
|
+ public void saveScene(ScenePlus scenePlus, String scenePassword, Camera cameraEntity, String phone, boolean rebuild) {
|
|
|
+ String url = laserHost + String.format(SAVE_SCENE_URL_TEMPLATE, scenePlus.getNum());
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("childName", cameraEntity.getChildName());
|
|
|
- params.put("createTime", DateUtil.date2String(sceneProEntity.getCreateTime(), null));
|
|
|
+ params.put("createTime", DateUtil.date2String(scenePlus.getCreateTime(), null));
|
|
|
params.put("phone", phone);
|
|
|
- params.put("sceneCode", sceneProEntity.getNum());
|
|
|
+ params.put("sceneCode", scenePlus.getNum());
|
|
|
params.put("snCode", cameraEntity.getSnCode());
|
|
|
- params.put("status", sceneProEntity.getSceneStatus());
|
|
|
+ params.put("status", scenePlus.getSceneStatus());
|
|
|
if (!rebuild) {
|
|
|
params.put("password", scenePassword);
|
|
|
} else {
|
|
|
params.put("status", 4);
|
|
|
}
|
|
|
- params.put("title", sceneProEntity.getTitle());
|
|
|
- params.put("userId", sceneProEntity.getUserId());
|
|
|
+ params.put("title", scenePlus.getTitle());
|
|
|
+ params.put("userId", scenePlus.getUserId());
|
|
|
log.info("自研激光转台相机同步,url:{},params:{}", url, JSONObject.toJSONString(params));
|
|
|
ResponseEntity<Result> responseEntity = restTemplate.postForEntity(url, params, Result.class);
|
|
|
log.info("自研激光转台相机同步,url:{},params:{},结果,{}", url, JSONObject.toJSONString(params), JSONObject.toJSONString(responseEntity.getBody()));
|