|
|
|
@@ -799,8 +799,15 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { |
|
|
|
if(payAccount == null){ |
|
|
|
throw new MallinkException(ErrorCode.API_KEY_NOT_FOUND); |
|
|
|
} |
|
|
|
OrderAdapterService orderAdapterService = orderFactory.getOrderAdapterService(EnumComposeOrder.SINGLE.getCode()); |
|
|
|
WxComposeOrder composeOrder = orderAdapterService.getComposeOrder(record.getOrderId(), cAppInfo.getTenantId()); |
|
|
|
if (composeOrder == null) { |
|
|
|
logger.error("pay order reverse, no composeOrder " + record.toString()); |
|
|
|
throw new MallinkException(ErrorCode.ORDER_IS_NOT_FIND); |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
PayAdapterResult result = payServiceFactory.getPayAdapterService(record.getPayVendor(),record.getPayVersion()).payOrderReverse(cAppInfo, record, payAccount); |
|
|
|
PayAdapterResult result = payServiceFactory.getPayAdapterService(record.getPayVendor(),record.getPayVersion()).payOrderReverse(cAppInfo, record, payAccount,composeOrder); |
|
|
|
if (result.isSuccess()) { |
|
|
|
record.setPayOrderStatus(EnumPayStatus.PAY_STATUS_REVERSE.getCode()); |
|
|
|
record.setUpdateTime(new Date()); |
|
|
|
|