Commit c5532290 authored by litengwei's avatar litengwei

measurementType 字段未发送

parent c79ec3cc
...@@ -735,7 +735,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -735,7 +735,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
} else { } else {
jsonObjectData.put("value", value); jsonObjectData.put("value", value);
} }
jsonObjectData.put("measurementType",equipmentSpecificIndex.getEquipmentIndexKey()); jsonObjectData.put("measurementType", null == equipmentSpecificIndex.getEquipmentIndexKey() ? "" :equipmentSpecificIndex.getEquipmentIndexKey());
jsonObjectData.put("dateTime",date); jsonObjectData.put("dateTime",date);
jsonObjectData.put("quality","0"); // 量测质量码:0 有效,1 无效 jsonObjectData.put("quality","0"); // 量测质量码:0 有效,1 无效
List<JSONObject> jsonObjects = Arrays.asList(jsonObjectData); List<JSONObject> jsonObjects = Arrays.asList(jsonObjectData);
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
wesi.equipment_specific_id AS equipmentSpecificId, wesi.equipment_specific_id AS equipmentSpecificId,
wesi.equipment_index_id AS equipmentIndexId, wesi.equipment_index_id AS equipmentIndexId,
wesi.equipment_index_name AS equipmentIndexName, wesi.equipment_index_name AS equipmentIndexName,
wesi.equipment_index_key AS equipmentIndexKey,
wesi.value_label AS valueLabel, wesi.value_label AS valueLabel,
wei.type_code AS typeCode, wei.type_code AS typeCode,
wei.type_name AS typeName, wei.type_name AS typeName,
......
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