From 386ab0899ebbea682bab3b1d15b0d8fb583555de Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Wed, 9 Aug 2023 09:03:16 +0800 Subject: [PATCH] =?UTF-8?q?#=E8=BF=913=E5=B9=B4=E5=8F=91=E7=94=B5=E9=87=8F?= =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/operational/main/service/impl/SideHustleServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/SideHustleServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/SideHustleServiceImpl.java index 3c0ae9a..7cd4825 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/SideHustleServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/SideHustleServiceImpl.java @@ -1481,6 +1481,9 @@ public class SideHustleServiceImpl implements ISideHustleService { float power = 0f; // 遍历累计当月所有站点实际发电量 for(Map item : list){ + if(ObjectUtil.isEmpty(item.get(mon))){ + continue; + } power += item.get(mon); } return power;