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 cbbbd41d9..8317a93b8 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 @@ -693,7 +693,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService { } // 消费金额就是订单总金额 BigDecimal orderAmount = new BigDecimal(data.getConsumptionAmount()); - orderBasicInfo.setOrderAmount(orderAmount); // 订单总金额 // 付款金额 - 实际消费金额,如果有剩余,需要走退款操作 当使用余额支付时payAmount = principalPay + giftPay BigDecimal payAmount = orderBasicInfo.getPayAmount(); @@ -704,6 +703,8 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService { orderAmount = payAmount; } + orderBasicInfo.setOrderAmount(orderAmount); // 订单总金额 + // 虚拟金额 指订单消费中不参与结算的部分 BigDecimal virtualAmount = BigDecimal.ZERO; if (OrderPayModeEnum.PAYMENT_OF_WHITELIST.getValue().equals(orderBasicInfo.getPayMode())) {