修复微信退款成功后退款回调失败订单状态未改变
This commit is contained in:
parent
b94497e1a5
commit
a2bb90fef0
@ -79,7 +79,8 @@ public class EbikeRefundServiceImpl extends ServiceImpl<EbikeRefundMapper, Ebike
|
|||||||
BigDecimal refundAmount = calculateRefundAmount(refund);
|
BigDecimal refundAmount = calculateRefundAmount(refund);
|
||||||
ebikeRefund.setRefund(refundAmount);
|
ebikeRefund.setRefund(refundAmount);
|
||||||
}
|
}
|
||||||
Long orderId = Long.valueOf(refund.getOutTradeNo());
|
// 获取订单id(非微信的订单id)
|
||||||
|
Long orderId = ebikeRefund.getOrderId();
|
||||||
log.info("订单Id:{}, 订单状态:{}", orderId, refund.getStatus().ordinal());
|
log.info("订单Id:{}, 订单状态:{}", orderId, refund.getStatus().ordinal());
|
||||||
// 更新订单退款状态
|
// 更新订单退款状态
|
||||||
switch (refund.getStatus()) {
|
switch (refund.getStatus()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user