bugfix 退款逻辑

This commit is contained in:
Lemon
2025-09-16 16:27:41 +08:00
parent ea92374c9c
commit ffbb95ae12

View File

@@ -1950,10 +1950,10 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
// 校验订单支付金额,消费金额,退款金额
BigDecimal orderPayAmount = afterSettleOrderDTO.getOrderPayAmount(); // 支付金额
if (orderBasicInfo.getInsuranceAmount().compareTo(BigDecimal.ZERO) > 0) {
// 如果该笔订单保险金额大于0则将支付金额 - 保险金额作为新的支付金额
orderPayAmount = orderPayAmount.subtract(orderBasicInfo.getInsuranceAmount());
}
// if (orderBasicInfo.getInsuranceAmount().compareTo(BigDecimal.ZERO) > 0) {
// // 如果该笔订单保险金额大于0则将支付金额 - 保险金额作为新的支付金额
// orderPayAmount = orderPayAmount.subtract(orderBasicInfo.getInsuranceAmount());
// }
BigDecimal orderConsumeAmount = afterSettleOrderDTO.getOrderConsumeAmount(); // 消费金额
BigDecimal orderSettleAmount = afterSettleOrderDTO.getOrderSettleAmount();
BigDecimal orderRefundAmount = afterSettleOrderDTO.getOrderRefundAmount(); // 退款金额