|
@@ -1742,7 +1742,6 @@ DISCOUNT("畅学卡")
|
|
|
DistributedLock.of(redissonClient).runIfLockCanGet(lockNameInner, () -> {
|
|
|
if (StringUtils.isEmpty(paymentOrder.getTransNo()) || reduce.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
orderRefundBill.setStatus(TradeStatusEnum.succeeded);
|
|
|
- userOrderRefundBillService.save(orderRefundBill);
|
|
|
} else {
|
|
|
try {
|
|
|
RefundResp refundResp = paymentServiceContext.getPaymentService(paymentOrder.getPaymentVendor()).refund(refundOrder);
|
|
@@ -1941,10 +1940,12 @@ DISCOUNT("畅学卡")
|
|
|
if (PaymentStatus.FAILED == refundResp.getPaymentStatus()) {
|
|
|
userOrderRefundBill.setStatus(TradeStatusEnum.failed);
|
|
|
userOrderRefundBill.setPayFailMsg(refundResp.getMsg());
|
|
|
+ userOrderRefundBill.setTransNo(refundResp.getTransNo());
|
|
|
} else if (PaymentStatus.SUCCESSED == refundResp.getPaymentStatus()) {
|
|
|
// 更新退款订单状态
|
|
|
userOrderRefundBill.setStatus(TradeStatusEnum.succeeded);
|
|
|
userOrderRefundBill.setPayFailMsg("");
|
|
|
+ userOrderRefundBill.setTransNo(refundResp.getTransNo());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
userOrderRefundBill.setStatus(TradeStatusEnum.failed);
|