Commit 05a123c4 authored by 刘林's avatar 刘林

fix(equip):修改遥测value取值类型

parent 9bde89bd
......@@ -614,13 +614,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
String indexAddress = jsonObject.getString("address");
String traceId = jsonObject.getString("traceId");
String gatewayId = jsonObject.getString("gatewayId");
String value;
//如果消息是遥信类型,进行指标转换
if(dataType != null && !"state".equals(dataType)){
value = jsonObject.getString("value");
}else{
value = jsonObject.getInteger("value") ==1 ? "true":"false";
}
String value=jsonObject.getString("value");
EquipmentSpecificIndex equipmentSpeIndex = equipmentSpecificIndexService.getEquipmentSpeIndexByIndexAddress(indexAddress,gatewayId);
if (equipmentSpeIndex == null){
......
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