|
|
|
@@ -72,8 +72,9 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public WxThirdPartyOrders getRefundOrderByRefundId(String refundId, String tenantId) { |
|
|
|
public WxThirdPartyOrders getRefundOrderByRefundId(EnumThirdOrderType orderType,String refundId, String tenantId) { |
|
|
|
WxThirdPartyOrders recordQ = new WxThirdPartyOrders(); |
|
|
|
recordQ.setSourceType(orderType.getCode()); |
|
|
|
recordQ.setRefundId(refundId); |
|
|
|
recordQ.setTenantId(tenantId); |
|
|
|
return wxThirdPartyOrdersMapper.getRefundOrderByRefundId(recordQ); |
|
|
|
@@ -191,7 +192,7 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService |
|
|
|
logger.error("--第三方退款--付款消息未找到--transactionId="+record.getTransactionId()); |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "付款消息未找到"); |
|
|
|
}else{ |
|
|
|
WxThirdPartyOrders refundOrder = this.getRefundOrderByRefundId(record.getRefundId(),record.getTenantId()); |
|
|
|
WxThirdPartyOrders refundOrder = this.getRefundOrderByRefundId(EnumThirdOrderType.RMB_PAY,record.getRefundId(),record.getTenantId()); |
|
|
|
if(refundOrder != null){ |
|
|
|
logger.error("--Ali商圈退款--退款消息已存在---RefundId="+record.getRefundId()); |
|
|
|
}else{ |
|
|
|
|