...
|
...
|
@@ -278,7 +278,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
tradeNo = tradeNo + hbfqEnum.getTradeNoPostfix();
|
|
|
}
|
|
|
|
|
|
PayQueryBo payQueryBo = payService.payQuery(tradeNo);
|
|
|
PayQueryBo payQueryBo = payService.payQuery(tradeNo, orderInfo.getCreateTime());
|
|
|
|
|
|
if (!payQueryBo.isPayStatus()) {
|
|
|
logger.info("payConfirm has not paid, orderCode is {}", request.getOrderCode());
|
...
|
...
|
@@ -505,7 +505,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
// 退款
|
|
|
AbstractPayService payService = getPayService(orderInfo.getPayment());
|
|
|
|
|
|
PayRefundBo payRefundBo = buildRefundRequest(request, ordersPay);
|
|
|
PayRefundBo payRefundBo = buildRefundRequest(orderInfo, request, ordersPay);
|
|
|
PayRefundBo refundBo = payService.refundOpenApi(payRefundBo);
|
|
|
|
|
|
//退款申请成功的记录添加到orders_pay_refund表
|
...
|
...
|
@@ -517,7 +517,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
|
|
|
}
|
|
|
|
|
|
private PayRefundBo buildRefundRequest(PaymentRequest request, OrdersPay ordersPay) {
|
|
|
private PayRefundBo buildRefundRequest(OrderInfo orderInfo, PaymentRequest request, OrdersPay ordersPay) {
|
|
|
PayRefundBo payRefundBo = new PayRefundBo();
|
|
|
payRefundBo.setOrderCode(String.valueOf(request.getOrderCode()));
|
|
|
payRefundBo.setPayOrderCode(ordersPay.getPayOrderCode());
|
...
|
...
|
@@ -525,7 +525,9 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
payRefundBo.setOrderTotalFee(ordersPay.getAmount().doubleValue());
|
|
|
payRefundBo.setRefundOrderCode(String.valueOf(ordersPay.getOrderCode()) + ordersPay.getId());
|
|
|
payRefundBo.setUid(ordersPay.getUid());
|
|
|
payRefundBo.setOrderCreateTime(orderInfo.getCreateTime());
|
|
|
payRefundBo.setAttach(request.getRefundattch());
|
|
|
payRefundBo.setSerialNo(ordersPay.getSerialNo());
|
|
|
return payRefundBo;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1030,6 +1032,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
payRefundBo.setOrderTotalFee(ordersPay.getAmount().doubleValue());
|
|
|
payRefundBo.setRefundOrderCode(String.valueOf(ordersPay.getOrderCode()) + ordersPay.getId());
|
|
|
payRefundBo.setUid(ordersPay.getUid());
|
|
|
payRefundBo.setOrderCreateTime(orderInfo.getCreateTime());
|
|
|
|
|
|
refundBo = payService.refundOpenApi(payRefundBo);
|
|
|
|
...
|
...
|
|