|
@@ -234,13 +234,12 @@ public class HandleDataController extends BaseController
|
|
|
currentHour = currentHour.plusMinutes(10);
|
|
|
|
|
|
//每个小时查询一次数据
|
|
|
- String url = "http://10.0.0.27:4568/api/v1/khquerydata";
|
|
|
HashMap<String, Object> req = new HashMap<>();
|
|
|
req.put("tagNames", queryTags);
|
|
|
req.put("startTime", begin);
|
|
|
req.put("endTime", end);
|
|
|
req.put("recordNumbers", 100000);
|
|
|
- String body = HttpRequest.post(url).header("Authorization", "c2E6c2E=").header("clientName", "hongshan").body(JSON.toJSONString(req)).execute().body();
|
|
|
+ String body = HttpRequest.post(INDUSTRY_INTERFACE_ADDR).header("Authorization", "c2E6c2E=").header("clientName", "hongshan").body(JSON.toJSONString(req)).execute().body();
|
|
|
// System.out.println("body = " + body);
|
|
|
List<HashMap<String, String>> list = new ArrayList<>();
|
|
|
|
|
@@ -759,13 +758,12 @@ public class HandleDataController extends BaseController
|
|
|
currentHour = currentHour.plusDays(1);
|
|
|
|
|
|
//每个小时查询一次数据
|
|
|
- String url = "http://10.0.0.27:4568/api/v1/khquerydata";
|
|
|
HashMap<String, Object> req = new HashMap<>();
|
|
|
req.put("tagNames", queryTags);
|
|
|
req.put("startTime", begin);
|
|
|
req.put("endTime", end);
|
|
|
req.put("recordNumbers", 100000);
|
|
|
- String body = HttpRequest.post(url).header("Authorization", "c2E6c2E=").header("clientName", "hongshan").body(JSON.toJSONString(req)).execute().body();
|
|
|
+ String body = HttpRequest.post(INDUSTRY_INTERFACE_ADDR).header("Authorization", "c2E6c2E=").header("clientName", "hongshan").body(JSON.toJSONString(req)).execute().body();
|
|
|
// System.out.println("body = " + body);
|
|
|
List<HashMap<String, String>> list = new ArrayList<>();
|
|
|
|