订单退款方式

This commit is contained in:
2025-04-08 09:35:07 +08:00
parent f6b4504132
commit 4e9d4b620f
4 changed files with 14 additions and 9 deletions

View File

@@ -667,7 +667,9 @@ public class PayServiceImpl implements PayService {
refundOrder(orderInfo.getShopId(), orderInfo.getId(), orderInfo.getPayOrderId(),
refPayOrderNo, StrUtil.isBlank(param.getRefundReason()) ? "退款" : param.getRefundReason(), param.getRefundAmount());
}
orderInfo.setRefundType("payBack");
}
orderInfo.setRefundType("cash");
} else {
orderInfo.setOrderAmount(orderInfo.getOrderAmount().subtract(param.getRefundAmount()));
}