Commit 5c5ace26 authored by jichao's avatar jichao

修改bug

parent 4d420786
...@@ -222,13 +222,15 @@ public class SystemServiceImpl implements SystemService { ...@@ -222,13 +222,15 @@ public class SystemServiceImpl implements SystemService {
// 默认值为0 // 默认值为0
paramStatus.setValue(0); paramStatus.setValue(0);
// 获得数据 // 获得数据
JSONObject jsonObject = (JSONObject) json.get(devNum); if (json != null) {
if (jsonObject != null) { JSONObject jsonObject = (JSONObject) json.get(devNum);
JSONObject valueObject = (JSONObject) jsonObject.get("REG_VAL"); if (jsonObject != null) {
if (valueObject != null) { JSONObject valueObject = (JSONObject) jsonObject.get("REG_VAL");
Object value = valueObject.get(param); if (valueObject != null) {
if (value != null) { Object value = valueObject.get(param);
paramStatus.setValue(value); if (value != null) {
paramStatus.setValue(value);
}
} }
} }
} }
......
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