From 7b1725649a1442184f8329eafa48d785d2c57e55 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Mon, 14 Aug 2023 08:27:06 +0800 Subject: [PATCH] =?UTF-8?q?#=E6=99=BA=E8=83=BD=E7=94=9F=E4=BA=A7=E5=8F=91?= =?UTF-8?q?=E7=94=B5=E9=87=8Fbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/operational/main/service/impl/SideHustleServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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..9fe7989 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,7 +1481,12 @@ public class SideHustleServiceImpl implements ISideHustleService { float power = 0f; // 遍历累计当月所有站点实际发电量 for(Map item : list){ - power += item.get(mon); + if(ObjectUtil.isEmpty(item.get(mon))){ + power += 0; + }else{ + power += item.get(mon); + } + } return power; }