From ea92374c9cf391cf7c69b6f3136642f8daefc6bb Mon Sep 17 00:00:00 2001 From: Lemon Date: Tue, 16 Sep 2025 16:10:22 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20=20=E9=80=80=E6=AC=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/service/impl/OrderBasicInfoServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 e337515ca..74bba97b9 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 @@ -1984,11 +1984,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService { } } - // 判断订单是否购买保险 - if (orderBasicInfo.getInsuranceAmount().compareTo(BigDecimal.ZERO) > 0) { - // 如果购买保险,则退款金额需要再减去保险金额 - orderRefundAmount = orderRefundAmount.subtract(orderBasicInfo.getInsuranceAmount()); - } + // 校验通过,将退款金额重新set(为了避免数据库的退款金额没有及时更新) orderBasicInfo.setRefundAmount(orderRefundAmount); afterSettleOrderDTO.setOrderBasicInfo(orderBasicInfo);