| | |
| | | Object rawValue = singleCompute(dto, dataMap, listGood, listBad); |
| | | BigDecimal coefficient = dto.getUnittransfactor() == null ? BigDecimal.ONE : dto.getUnittransfactor(); |
| | | BigDecimal calValue = new BigDecimal(rawValue.toString()).multiply(coefficient); |
| | | if (dto.getMaxValue() != null && calValue.compareTo(dto.getMaxValue()) > 0) { |
| | | calValue = dto.getMaxValue(); |
| | | } else if (dto.getMinValue() != null && calValue.compareTo(dto.getMinValue()) < 0) { |
| | | calValue = dto.getMinValue(); |
| | | } |
| | | |
| | | InfluxPointValuePOJO pojo = GenInfluxPointValueUtils.getByPoint(dto, calValue); |
| | | pojo.setTimestamp(GenInfluxPointValueUtils.getByMin(collectTime, DataPointFreqEnum.getEumByCode(dto.getMinfreqid()))); |
| | | result.add(pojo); |
| | |
| | | t1.point_name, |
| | | t1.default_value, |
| | | t1.unittransfactor, |
| | | t1.max_value, |
| | | t1.min_value, |
| | | t1.point_type, |
| | | t1.data_type, |
| | | t1.store_type, |
| | |
| | | t1.point_type, |
| | | t1.data_type, |
| | | t1.store_type, |
| | | t1.unittransfactor, |
| | | t1.max_value, |
| | | t1.min_value, |
| | | t1.minfreqid, |
| | | t2.moment_point, |
| | | t2.length, |