潘志宝
13 小时以前 c3e9ef1922656471b934aba4034a8f91a5ba9555
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/asdb/HttpCollectorForAsag.java
@@ -52,7 +52,7 @@
        try {
            this.getByHtp(result, params, collectTime);
        } catch (Exception ex) {
            log.info("getCurrentValue异常");
            log.info("getTagValues异常");
            ex.printStackTrace();
            throw ex;
        }
@@ -76,9 +76,11 @@
            Map<String, String> queryMap = new HashMap<>();
            String point = item[1].toString();
            queryMap.put("point", point);
            queryMap.put("startTime", DateUtils.format(startTime, "yyyy-MM-dd HH:mm:ss"));
            queryMap.put("endTime", DateUtils.format(endTime, "yyyy-MM-dd HH:mm:ss"));
            queryMap.put("startTime", DateUtils.format(startTime, "yyyy-MM-dd%20HH:mm:ss"));
            queryMap.put("endTime", DateUtils.format(endTime, "yyyy-MM-dd%20HH:mm:ss"));
            log.info("HttpCollectorForAsag:queryMap={}", JSON.toJSONString(queryMap));
            String responseStr = HttpUtils.sendGet(api_url, queryMap, "");
            log.info("HttpCollectorForAsag:responseStr={}", responseStr);
            JSONObject obj = JSON.parseObject(responseStr);
            if (obj.containsKey(point)) {
                Double value = obj.getDouble(point);