设备容量修改
This commit is contained in:
@@ -61,6 +61,6 @@ public class CsDevCapacityPOServiceImpl extends ServiceImpl<CsDevCapacityPOMappe
|
|||||||
if(Objects.isNull(one)){
|
if(Objects.isNull(one)){
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
return Double.valueOf(df.format(one.getCapacity()*0.1));
|
return Double.valueOf(df.format(one.getCapacity()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public class MqttMessageHandler {
|
|||||||
if (capacity<=0){
|
if (capacity<=0){
|
||||||
thdDataVO.setStatisticalData(3.1415926);
|
thdDataVO.setStatisticalData(3.1415926);
|
||||||
}else {
|
}else {
|
||||||
double v = temp.getStatisticalData() / capacity;
|
double v = temp.getStatisticalData()*100 / capacity;
|
||||||
thdDataVO.setStatisticalData(Double.valueOf(df.format(v)));
|
thdDataVO.setStatisticalData(Double.valueOf(df.format(v)));
|
||||||
}
|
}
|
||||||
result.add(thdDataVO);
|
result.add(thdDataVO);
|
||||||
|
|||||||
Reference in New Issue
Block a user