修改bug
This commit is contained in:
@@ -53,4 +53,7 @@ public class EnergyTemplateVO {
|
|||||||
@ApiModelProperty("最小值")
|
@ApiModelProperty("最小值")
|
||||||
private Double minValue;
|
private Double minValue;
|
||||||
|
|
||||||
|
@ApiModelProperty("平均值")
|
||||||
|
private Double avgValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.njcn</groupId>
|
<groupId>com.njcn</groupId>
|
||||||
<artifactId>pqs-influx</artifactId>
|
<artifactId>pqs-influx</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
|||||||
@@ -170,9 +170,13 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
|
|||||||
if (!Objects.isNull(statisticalDataDTO)){
|
if (!Objects.isNull(statisticalDataDTO)){
|
||||||
vo.setMaxValue(BigDecimal.valueOf(statisticalDataDTO.getMaxValue()).setScale(4, RoundingMode.UP).doubleValue());
|
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.getMinValue()).setScale(4, RoundingMode.UP).doubleValue());
|
||||||
|
vo.setMinValue(BigDecimal.valueOf(statisticalDataDTO.getAvgValue()).setScale(4, RoundingMode.UP).doubleValue());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
vo.setMaxValue(3.1415956);
|
vo.setMaxValue(3.1415956);
|
||||||
vo.setMinValue(3.1415956);
|
vo.setMinValue(3.1415956);
|
||||||
|
vo.setAvgValue(3.1415956);
|
||||||
|
|
||||||
}
|
}
|
||||||
arrayList.add(vo);
|
arrayList.add(vo);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user