| | |
| | | } |
| | | |
| | | @Override |
| | | public Object queryPointMaxValue(ApiPointValueQueryDTO queryDto) { |
| | | public Map<String, Object> queryPointMaxValue(ApiPointValueQueryDTO queryDto) { |
| | | Map<String, Object> result = new HashMap<>(); |
| | | if (StringUtils.isEmpty(queryDto.getPointNo())) { |
| | | return null; |
| | | } |
| | |
| | | InfluxPointValuePOJO pojo = new InfluxPointValuePOJO(); |
| | | pojo.setPoint(queryDto.getPointNo()); |
| | | pojo.setType(daPointDTO.getDataType()); |
| | | return influxDBService.queryPointMaxValue(pojo, queryDto.getStart()); |
| | | Object val = influxDBService.queryPointMaxValue(pojo, queryDto.getStart()); |
| | | result.put(queryDto.getPointNo(), val); |
| | | return result; |
| | | } |
| | | |
| | | @Override |