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;