|
|
|
@ -104,6 +104,7 @@ public class EXAUtils { |
|
|
|
* @return exa列表 |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public List<String> getNowData(String EXA_IP,String itemNames) throws URISyntaxException, IOException { |
|
|
|
List<String> result = new ArrayList<>(); |
|
|
|
try { |
|
|
|
@ -148,6 +149,29 @@ public class EXAUtils { |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public EXAResult getNowDataList(String EXA_IP,EXANowListReqVO exaNowListReqVO) throws URISyntaxException, IOException { |
|
|
|
EXAResult result = new EXAResult(); |
|
|
|
try { |
|
|
|
// 目标 RPC 服务的 URL
|
|
|
|
String url = "http://"+EXA_IP+":9000/exawebapi/exanow/GetFloatValueBatch"; |
|
|
|
String param = JSON.toJSONString(exaNowListReqVO); |
|
|
|
String resultStr = Request.Post(url) |
|
|
|
.addHeader("Content-type", "application/json") |
|
|
|
.bodyString(param, ContentType.APPLICATION_JSON) |
|
|
|
.execute().returnContent().asString(Charset.forName("utf-8")); |
|
|
|
Gson gson=new Gson(); |
|
|
|
|
|
|
|
result= gson.fromJson(resultStr, EXAResult.class); |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
} |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 根据分页条件和测点名称测点描述模糊查询 |
|
|
|
* |
|
|
|
|