Commit aaaad40a authored by 高东东's avatar 高东东

修改bug

parent 82346463
...@@ -301,7 +301,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -301,7 +301,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
BeanUtils.copyProperties(equipmentSpecificIndex, equipmentSpeIndex); BeanUtils.copyProperties(equipmentSpecificIndex, equipmentSpeIndex);
String value = iotDataVO.getValue().toString(); String value = iotDataVO.getValue().toString();
equipmentSpeIndex.setValue(value); equipmentSpeIndex.setValue(value);
equipmentSpecificIndex.setValue(value);
String enumStr = equipmentSpecificIndex.getValueEnum(); String enumStr = equipmentSpecificIndex.getValueEnum();
if (!ObjectUtils.isEmpty(enumStr)) { if (!ObjectUtils.isEmpty(enumStr)) {
try { try {
...@@ -310,6 +310,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -310,6 +310,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
JSONObject jsonObject = jsonArray.getJSONObject(i); JSONObject jsonObject = jsonArray.getJSONObject(i);
if (jsonObject.get("key").equals(value)) { if (jsonObject.get("key").equals(value)) {
equipmentSpeIndex.setValueLabel(jsonObject.getString("label")); equipmentSpeIndex.setValueLabel(jsonObject.getString("label"));
equipmentSpecificIndex.setValueLabel(jsonObject.getString("label"));
} }
} }
} catch (Exception e) { } catch (Exception e) {
......
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