|
@@ -519,11 +519,11 @@ public class EdosUtil implements IEdosUtil {
|
|
|
|
|
|
try {
|
|
try {
|
|
String url ="";
|
|
String url ="";
|
|
- if (point.getTypeId().equals("G")){
|
|
|
|
|
|
+// if (point.getTypeId().equals("G")){
|
|
url = baseURL2 + "/history/snap?null=0";
|
|
url = baseURL2 + "/history/snap?null=0";
|
|
- }else {
|
|
|
|
|
|
+// }else {
|
|
url = baseURL + "/history/snap?null=0";
|
|
url = baseURL + "/history/snap?null=0";
|
|
- }
|
|
|
|
|
|
+// }
|
|
//tagName 或thingType,thingId,uniformCode可以确定一个标签点
|
|
//tagName 或thingType,thingId,uniformCode可以确定一个标签点
|
|
if (tagName.isPresent())
|
|
if (tagName.isPresent())
|
|
url = url + "&tagName=" + tagName.get();
|
|
url = url + "&tagName=" + tagName.get();
|
|
@@ -561,9 +561,9 @@ public class EdosUtil implements IEdosUtil {
|
|
// 则代表该时间节点快照有效,否则为0
|
|
// 则代表该时间节点快照有效,否则为0
|
|
|
|
|
|
String rawUrl = baseURL + "/history/section?null=0&tagNames=" + point.getNemCode() + "&ts=" + snapItem.getPointTime() ;
|
|
String rawUrl = baseURL + "/history/section?null=0&tagNames=" + point.getNemCode() + "&ts=" + snapItem.getPointTime() ;
|
|
- if (point.getTypeId().equals("G")){
|
|
|
|
|
|
+// if (point.getTypeId().equals("G")){
|
|
rawUrl = baseURL2 + "/history/section?null=0&tagNames=" + point.getNemCode() + "&ts=" + snapItem.getPointTime() ;
|
|
rawUrl = baseURL2 + "/history/section?null=0&tagNames=" + point.getNemCode() + "&ts=" + snapItem.getPointTime() ;
|
|
- }
|
|
|
|
|
|
+// }
|
|
|
|
|
|
ResponseEntity<JSONObject> sectionResp = restTemplate.getForEntity(rawUrl, JSONObject.class);
|
|
ResponseEntity<JSONObject> sectionResp = restTemplate.getForEntity(rawUrl, JSONObject.class);
|
|
JSONObject jsonObjectSection = sectionResp.getBody();
|
|
JSONObject jsonObjectSection = sectionResp.getBody();
|