修改bug

This commit is contained in:
huangzj
2023-11-07 14:26:26 +08:00
parent 0a6a70167c
commit 2be6a85bed
3 changed files with 8 additions and 1 deletions

View File

@@ -61,7 +61,7 @@
<dependency>
<groupId>com.njcn</groupId>
<artifactId>pqs-influx</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>

View File

@@ -170,9 +170,13 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
if (!Objects.isNull(statisticalDataDTO)){
vo.setMaxValue(BigDecimal.valueOf(statisticalDataDTO.getMaxValue()).setScale(4, RoundingMode.UP).doubleValue());
vo.setMinValue(BigDecimal.valueOf(statisticalDataDTO.getMinValue()).setScale(4, RoundingMode.UP).doubleValue());
vo.setMinValue(BigDecimal.valueOf(statisticalDataDTO.getAvgValue()).setScale(4, RoundingMode.UP).doubleValue());
} else {
vo.setMaxValue(3.1415956);
vo.setMinValue(3.1415956);
vo.setAvgValue(3.1415956);
}
arrayList.add(vo);
}