From 5aed246b6947b9bdc5909b67a267b57fb87e6a17 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Mon, 19 Feb 2024 11:05:59 +0800 Subject: [PATCH] =?UTF-8?q?update=E6=9C=AA=E8=AE=BE=E7=BD=AE=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E9=BB=98=E8=AE=A40=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/service/impl/PileBillingTemplateServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java index 895ebe30f..3ee26302f 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBillingTemplateServiceImpl.java @@ -837,6 +837,13 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic servicePrice = dto.getServicePriceD(); } Map resultMap = Maps.newHashMap(); + + if (electricityPrice == null) { + electricityPrice = BigDecimal.ZERO; + } + if (servicePrice == null) { + servicePrice = BigDecimal.ZERO; + } resultMap.put("electricityPrice", electricityPrice); resultMap.put("servicePrice", servicePrice); return resultMap;