|
@@ -110,6 +110,7 @@ public class BerthingServiceImpl implements BerthingService {
|
|
|
requestMap.put("id",siteInfo.getId());
|
|
|
requestMap.put("points",positions);
|
|
|
String data = JSONUtil.toJsonStr(requestMap);
|
|
|
+ log.info("mqtt发送数据:topic:{} data:{}",topic,data);
|
|
|
mqttGateWayService.sendMessageToMqtt(data, topic);
|
|
|
return res;
|
|
|
} catch (Exception e){
|
|
@@ -255,6 +256,7 @@ public class BerthingServiceImpl implements BerthingService {
|
|
|
requestMap.put("positions",positions);
|
|
|
requestMap.put("factors",berthingPointConfigDTO.getFactors());
|
|
|
String data = JSONUtil.toJsonStr(requestMap);
|
|
|
+ log.info("mqtt发送数据:topic:{} data:{}",topic,data);
|
|
|
mqttGateWayService.sendMessageToMqtt(data, topic);
|
|
|
} catch (Exception e){
|
|
|
log.error("新增或修改停泊点错误", e);
|
|
@@ -333,6 +335,7 @@ public class BerthingServiceImpl implements BerthingService {
|
|
|
requestMap.put("wlevel",berthingTime.getWlevel());
|
|
|
requestMap.put("times",times);
|
|
|
String data = JSONUtil.toJsonStr(requestMap);
|
|
|
+ log.info("mqtt发送数据:topic:{} data:{}",topic,data);
|
|
|
mqttGateWayService.sendMessageToMqtt(data, topic);
|
|
|
} catch (Exception e){
|
|
|
log.error("新增或修改时间策略错误", e);
|
|
@@ -413,6 +416,7 @@ public class BerthingServiceImpl implements BerthingService {
|
|
|
requestMap.put("timespan",berthingFloat.getTimespan());
|
|
|
requestMap.put("wlevelchange",berthingFloat.getWlevelchange());
|
|
|
String data = JSONUtil.toJsonStr(requestMap);
|
|
|
+ log.info("mqtt发送数据:topic:{} data:{}",topic,data);
|
|
|
mqttGateWayService.sendMessageToMqtt(data, topic);
|
|
|
} catch (Exception e){
|
|
|
log.error("新增或修改水位变幅策略错误", e);
|