Commit 74e55209 authored by 高建强's avatar 高建强

item:添加日志输出

parent 3731e53d
...@@ -134,6 +134,8 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService { ...@@ -134,6 +134,8 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
TopicEntityVo topicEntity = JSON.parseObject(data, TopicEntityVo.class); TopicEntityVo topicEntity = JSON.parseObject(data, TopicEntityVo.class);
log.info("iotCode 性能指标属于: " + topicEntity.getType()); log.info("iotCode 性能指标属于: " + topicEntity.getType());
log.info("========topic==========: " + topic);
log.info("========data==========: " + JSON.toJSONString(data));
EquipmentSpecificIndexVo equipmentSpecificIndex = JSONObject.parseObject(topicEntity.getMessage(), EquipmentSpecificIndexVo.class); EquipmentSpecificIndexVo equipmentSpecificIndex = JSONObject.parseObject(topicEntity.getMessage(), EquipmentSpecificIndexVo.class);
long eqSpecId = equipmentSpecificIndex.getEquipmentSpecificId(); long eqSpecId = equipmentSpecificIndex.getEquipmentSpecificId();
String nameKey = equipmentSpecificIndex.getNameKey(); String nameKey = equipmentSpecificIndex.getNameKey();
...@@ -159,6 +161,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService { ...@@ -159,6 +161,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
Equipment equipment = topicEntity.getEquipment()==null?impAndFireEquipMapper.queryImpEqumtByFireEquipmt(eqSpecId):topicEntity.getEquipment(); Equipment equipment = topicEntity.getEquipment()==null?impAndFireEquipMapper.queryImpEqumtByFireEquipmt(eqSpecId):topicEntity.getEquipment();
Toke toke = remoteSecurityService.getServerToken(); Toke toke = remoteSecurityService.getServerToken();
AlarmParam deviceData = new AlarmParam(); AlarmParam deviceData = new AlarmParam();
log.info("========equipmentSpecific==========: " + JSON.toJSONString(equipmentSpecific));
deviceData.setMonitor(equipment != null ? equipment.getName() : ""); deviceData.setMonitor(equipment != null ? equipment.getName() : "");
deviceData.setId(String.valueOf(equipmentSpecific.getId())); deviceData.setId(String.valueOf(equipmentSpecific.getId()));
deviceData.setCode(equipmentSpecific.getCode()); deviceData.setCode(equipmentSpecific.getCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment