From 7edd93395ae29c26d229e3729d48c10e20ab9ed9 Mon Sep 17 00:00:00 2001 From: "bl\\GQS02" Date: Sat, 27 Sep 2025 09:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=BC=E4=B8=BAnull,=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/service/impl/OrderSplitRecordServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java index a6863443e..627fabb22 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderSplitRecordServiceImpl.java @@ -88,10 +88,10 @@ public class OrderSplitRecordServiceImpl implements OrderSplitRecordService { orderSplitRecord.setAdapayMemberId(splitData.getMemberId()); orderSplitRecord.setPaymentId(paymentId); orderSplitRecord.setPaymentConfirmId(paymentConfirmId); - orderSplitRecord.setElectricitySplitRatio(splitData.getElecRatio()); - orderSplitRecord.setElectricitySplitAmount(splitData.getElecAmount()); - orderSplitRecord.setServiceSplitRatio(splitData.getServiceRatio()); - orderSplitRecord.setServiceSplitAmount(splitData.getServiceAmount()); + orderSplitRecord.setElectricitySplitRatio(splitData.getElecRatio() != null ? splitData.getElecRatio() : BigDecimal.ZERO); + orderSplitRecord.setElectricitySplitAmount(splitData.getElecAmount() != null ? splitData.getElecAmount() : BigDecimal.ZERO); + orderSplitRecord.setServiceSplitRatio(splitData.getServiceRatio() != null ? splitData.getServiceRatio() : BigDecimal.ZERO); + orderSplitRecord.setServiceSplitAmount(splitData.getServiceAmount() != null ? splitData.getServiceAmount() : BigDecimal.ZERO); orderSplitRecord.setRemark(""); orderSplitRecord.setDelFlag(DelFlagEnum.NORMAL.getValue()); orderSplitRecord.setCreateBy(Constants.SYSTEM);