From ee9c87d165b231e4297194740cb8c098f3d30e54 Mon Sep 17 00:00:00 2001 From: Lemon Date: Fri, 6 Feb 2026 09:13:39 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20=20=E9=80=80=E4=BF=9D=E9=99=A9?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/service/impl/OrderBasicInfoServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java index fe16623bd..ab7bdfe34 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java @@ -891,6 +891,13 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService { } // 修改保险订单表的退款状态 OrderInsuranceInfo insuranceInfo = orderInsuranceInfoService.getInsuranceInfoByOrderCode(orderBasicInfo.getOrderCode()); + if (insuranceInfo == null) { + // 新增一条数据 + insuranceInfo = OrderInsuranceInfo.builder() + .orderCode(orderBasicInfo.getOrderCode()) + .tradeAmount(insuranceAmount) + .build(); + } insuranceInfo.setRefundStatus(Constants.ONE); orderInsuranceInfoService.updateOrderInsuranceInfo(insuranceInfo); }