Commit 17a20acc authored by 张森's avatar 张森

消防水池+工业水池储水量<4000m³ 触发预警业务bug修改

parent 9467b52f
......@@ -1468,7 +1468,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
private void doWaterStationWarning(String bizOrgCode, String bizOrgName) {
List<Map<String, Object>> result = poolStatisticController.getStationWaterPanelInfo(bizOrgCode).getResult();
String indexValue = result.stream()
.map(map -> (BigDecimal) map.get("volumeBigDecimal"))
.map(map -> (BigDecimal) map.getOrDefault("volumeBigDecimal", new BigDecimal(0)))
.reduce(BigDecimal.ZERO, BigDecimal::add).toString();
doWaterStationInfo(bizOrgCode, bizOrgName, indexValue);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment