Commit 066efa74 authored by KeYong's avatar KeYong

Merge remote-tracking branch 'origin/develop_dl_bugfix_0723' into develop_dl_bugfix_0723

parents 07bc97e1 17a20acc
...@@ -1468,7 +1468,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -1468,7 +1468,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
private void doWaterStationWarning(String bizOrgCode, String bizOrgName) { private void doWaterStationWarning(String bizOrgCode, String bizOrgName) {
List<Map<String, Object>> result = poolStatisticController.getStationWaterPanelInfo(bizOrgCode).getResult(); List<Map<String, Object>> result = poolStatisticController.getStationWaterPanelInfo(bizOrgCode).getResult();
String indexValue = result.stream() 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(); .reduce(BigDecimal.ZERO, BigDecimal::add).toString();
doWaterStationInfo(bizOrgCode, bizOrgName, indexValue); doWaterStationInfo(bizOrgCode, bizOrgName, indexValue);
} }
......
...@@ -7158,7 +7158,7 @@ ...@@ -7158,7 +7158,7 @@
FROM FROM
( (
(SELECT (SELECT
sum( n.num ) sum( n.num ) as indexNum
FROM FROM
( (
SELECT SELECT
...@@ -7175,7 +7175,6 @@ ...@@ -7175,7 +7175,6 @@
GROUP BY GROUP BY
a.id a.id
) n ) n
)
) AS indexNum, ) AS indexNum,
(SELECT count( 1 ) AS equipNum FROM wl_equipment_specific es LEFT JOIN wl_equipment e ON e.`code` = es.equipment_code WHERE e.is_iot = 1 (SELECT count( 1 ) AS equipNum FROM wl_equipment_specific es LEFT JOIN wl_equipment e ON e.`code` = es.equipment_code WHERE e.is_iot = 1
<if test="bizOrgCode!=null and bizOrgCode!=''"> <if test="bizOrgCode!=null and bizOrgCode!=''">
......
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