|
@ -247,7 +247,7 @@ public class DcDeviceController extends BaseController { |
|
|
JSONObject formatValue = JSON.parseObject(jsonObject.get("formatValue").toString()); |
|
|
JSONObject formatValue = JSON.parseObject(jsonObject.get("formatValue").toString()); |
|
|
map.put("1", formatValue.get("1")); |
|
|
map.put("1", formatValue.get("1")); |
|
|
map.put("3", formatValue.get("3")); |
|
|
map.put("3", formatValue.get("3")); |
|
|
map.put("timestamp", jsonObject.get("timestamp")); |
|
|
map.put("timestamp", formatValue.get("equipmentReportingTime")); |
|
|
list.add(map); |
|
|
list.add(map); |
|
|
}); |
|
|
}); |
|
|
return AjaxResult.success(list); |
|
|
return AjaxResult.success(list); |
|
@ -459,7 +459,7 @@ public class DcDeviceController extends BaseController { |
|
|
JSONObject functionJSONObject = (JSONObject) JSON.toJSON(function); |
|
|
JSONObject functionJSONObject = (JSONObject) JSON.toJSON(function); |
|
|
//JSONObject functionJSONObject = (JSONObject) JSON.toJSON(function.toString()) ;
|
|
|
//JSONObject functionJSONObject = (JSONObject) JSON.toJSON(function.toString()) ;
|
|
|
String functionId = functionJSONObject.getString("functionId"); |
|
|
String functionId = functionJSONObject.getString("functionId"); |
|
|
JSONObject jsonObject = functionJSONObject.getJSONObject("params") == null?functionJSONObject.getJSONObject("params"):new JSONObject(); |
|
|
JSONObject jsonObject = functionJSONObject.getJSONObject("params") != null?functionJSONObject.getJSONObject("params"):new JSONObject(); |
|
|
resultArray.add(getResult(device, iotDeviceId, functionId, jsonObject)); |
|
|
resultArray.add(getResult(device, iotDeviceId, functionId, jsonObject)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|