mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 07:18:31 +08:00
update 重试退款接口
This commit is contained in:
@@ -2972,16 +2972,22 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
// paymentId, refundAmount, wechatAppId, memberId, ScenarioEnum.ORDER.getValue(),
|
// paymentId, refundAmount, wechatAppId, memberId, ScenarioEnum.ORDER.getValue(),
|
||||||
// orderCode);
|
// orderCode);
|
||||||
|
|
||||||
PaymentReverseOperation operation = new PaymentReverseOperation();
|
// PaymentReverseOperation operation = new PaymentReverseOperation();
|
||||||
operation.setPaymentId(paymentId);
|
// operation.setPaymentId(paymentId);
|
||||||
operation.setReverseAmt(refundAmount);
|
// operation.setReverseAmt(refundAmount);
|
||||||
operation.setMerchantKey(wechatAppId);
|
// operation.setMerchantKey(wechatAppId);
|
||||||
operation.setMemberId(memberId);
|
// operation.setMemberId(memberId);
|
||||||
operation.setScenarioType(ScenarioEnum.ORDER.getValue());
|
// operation.setScenarioType(ScenarioEnum.ORDER.getValue());
|
||||||
operation.setOrderCode(orderCode);
|
// operation.setOrderCode(orderCode);
|
||||||
PaymentReverseResponse response = adapayService.createPaymentReverseRequest(operation);
|
// PaymentReverseResponse response = adapayService.createPaymentReverseRequest(operation);
|
||||||
|
|
||||||
logger.info("重试订单退款response:{}", JSON.toJSONString(response));
|
ApplyRefundDTO applyRefundDTO = new ApplyRefundDTO();
|
||||||
|
applyRefundDTO.setOrderCode(orderCode);
|
||||||
|
applyRefundDTO.setRefundType(Constants.ONE);
|
||||||
|
applyRefundDTO.setRefundAmount(refundAmount);
|
||||||
|
applyRefundDTO.setWechatAppId(wechatAppId);
|
||||||
|
refundOrderWithAdapay(applyRefundDTO);
|
||||||
|
// logger.info("重试订单退款response:{}", JSON.toJSONString(response));
|
||||||
} else {
|
} else {
|
||||||
BigDecimal reversedAmt = BigDecimal.ZERO;
|
BigDecimal reversedAmt = BigDecimal.ZERO;
|
||||||
for (PaymentReverseResponse paymentRevers : paymentReverses) {
|
for (PaymentReverseResponse paymentRevers : paymentReverses) {
|
||||||
|
|||||||
Reference in New Issue
Block a user