!324 修改pay模块>创建支付单>存在时返回订单Id

Merge pull request !324 from 骑士梦/master
This commit is contained in:
芋道源码 2022-12-12 14:16:40 +00:00 committed by Gitee
commit 988314fb74
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ public class PayOrderServiceImpl implements PayOrderService {
if (order != null) {
log.warn("[createPayOrder][appId({}) merchantOrderId({}) 已经存在对应的支付单({})]", order.getAppId(),
order.getMerchantOrderId(), JsonUtils.toJsonString(order)); // 理论来说不会出现这个情况
return app.getId();
return order.getId();
}
// 创建支付交易单

View File

@ -130,7 +130,7 @@ public class PayRefundServiceImpl implements PayRefundService {
} else {
// 成功插入退款单 状态为生成.没有和渠道交互
// TODO @jason搞到 convert 一些额外的自动手动 set
payRefundDO = PayRefundDO.builder().channelOrderNo(order.getChannelOrderNo())
payRefundDO = PayRefundDO.builder()
.appId(order.getAppId())
.channelOrderNo(order.getChannelOrderNo())
.channelCode(order.getChannelCode())