修改bug
This commit is contained in:
@@ -214,6 +214,8 @@ public class MqttMessageHandler {
|
|||||||
Double capacity = devCapacityFeignClient.getDevCapacity(devId).getData();
|
Double capacity = devCapacityFeignClient.getDevCapacity(devId).getData();
|
||||||
//获取输出电流计算负载率
|
//获取输出电流计算负载率
|
||||||
List<ThdDataVO> iTolOut = tempList.stream().filter(temp -> Objects.equals(temp.getStatisticalName(), "Apf_RmsI_TolOut(A)")).collect(Collectors.toList());
|
List<ThdDataVO> iTolOut = tempList.stream().filter(temp -> Objects.equals(temp.getStatisticalName(), "Apf_RmsI_TolOut(A)")).collect(Collectors.toList());
|
||||||
|
result.addAll(iTolOut);
|
||||||
|
|
||||||
iTolOut.forEach(temp->{
|
iTolOut.forEach(temp->{
|
||||||
ThdDataVO thdDataVO = new ThdDataVO();
|
ThdDataVO thdDataVO = new ThdDataVO();
|
||||||
BeanUtils.copyProperties(temp,thdDataVO);
|
BeanUtils.copyProperties(temp,thdDataVO);
|
||||||
@@ -226,7 +228,7 @@ public class MqttMessageHandler {
|
|||||||
thdDataVO.setStatisticalData(Double.valueOf(df.format(v)));
|
thdDataVO.setStatisticalData(Double.valueOf(df.format(v)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
result.add(thdDataVO);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user