修改bug
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user