退款更新问题
This commit is contained in:
@@ -2,6 +2,7 @@ package com.czg.service.order.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.date.LocalDateTimeUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.crypto.SecureUtil;
|
||||
@@ -522,12 +523,11 @@ public class OrderPayServiceImpl implements OrderPayService {
|
||||
}
|
||||
throw new CzgException(refund.getMsg());
|
||||
} else {
|
||||
paymentService.updateChain()
|
||||
.eq(OrderPayment::getId, refundId)
|
||||
.set(OrderPayment::getPayTime, refund.getData().getRefundTime())
|
||||
.set(OrderPayment::getTradeNumber, refund.getData().getThirdRefundNo())
|
||||
.set(OrderPayment::getRespJson, refund.getData().getOriginalData())
|
||||
.update();
|
||||
OrderPayment upPayment = new OrderPayment();
|
||||
upPayment.setPayTime(LocalDateTimeUtil.parse(refund.getData().getRefundTime()));
|
||||
upPayment.setTradeNumber(refund.getData().getThirdRefundNo());
|
||||
upPayment.setRespJson(refund.getData().getOriginalData());
|
||||
paymentService.update(upPayment, new QueryWrapper().eq(OrderPayment::getId, refundId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ public class PayServiceImpl implements PayService {
|
||||
return sysParamsService.getSysParamValue(ParamCodeCst.System.POLY_DOMAIN);
|
||||
}
|
||||
|
||||
private String getNotifyUrl(String channel) {
|
||||
private String getNotifyUrl(String channel) {
|
||||
String notifyUrl = "";
|
||||
if (channel.equals(PayChannelCst.NATIVE)) {
|
||||
notifyUrl = sysParamsService.getSysParamValue(ParamCodeCst.System.NATIVE_PAY_NOTIFY_URL);
|
||||
|
||||
Reference in New Issue
Block a user