| | |
| | | // 如果相等,则engTime加1毫秒,否则influxdb报错(因为influxdb的range函数是左闭右开区间,所以将engTime加一毫秒,才可以查到startTime时间点的数据) |
| | | endTime.setTime(endTime.getTime() + 1); |
| | | } |
| | | String stop = endTime.toInstant().toString(); |
| | | |
| | | // 结束时间默认追加10s |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(endTime); |
| | | calendar.add(Calendar.MILLISECOND, 10 * 1000 + 1); |
| | | String stop = calendar.getTime().toInstant().toString(); |
| | | |
| | | List<InfluxModelResultVO> dataList = new ArrayList<>(); |
| | | String measurement = MeasurementUtils.getMeasurement(pojo.getType()); |