提交 90b9d77b 作者: xiaowang

修复bug

上级 175e4249
......@@ -27,13 +27,11 @@ import com.wechat.pay.java.core.notification.NotificationConfig;
import com.wechat.pay.java.core.notification.NotificationParser;
import com.wechat.pay.java.core.notification.RequestParam;
import com.wechat.pay.java.service.payments.jsapi.JsapiService;
import com.wechat.pay.java.service.payments.jsapi.model.Amount;
import com.wechat.pay.java.service.payments.jsapi.model.*;
import com.wechat.pay.java.service.payments.model.Transaction;
import com.wechat.pay.java.service.refund.RefundService;
import com.wechat.pay.java.service.refund.model.AmountReq;
import com.wechat.pay.java.service.refund.model.CreateRequest;
import com.wechat.pay.java.service.refund.model.QueryByOutRefundNoRequest;
import com.wechat.pay.java.service.refund.model.Refund;
import com.wechat.pay.java.service.refund.model.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -291,10 +289,10 @@ public class WechatPayServiceImpl implements WechatPayService {
// 初始化 NotificationParser
NotificationParser parser = new NotificationParser(config);
// 验签、解密并转换成 Refund
Refund parse = parser.parse(requestParam, Refund.class);
RefundNotification parse = parser.parse(requestParam, RefundNotification.class);
log.info("解密resource数据:{}", parser);
ApplyRefundLogDO applyRefundLogDO = new ApplyRefundLogDO();
applyRefundLogDO.setNotifyRefundStatus(parse.getStatus().toString());
applyRefundLogDO.setNotifyRefundStatus(parse.getRefundStatus().toString());
applyRefundLogDO.setOrderNo(parse.getOutTradeNo());
applyRefundLogDO.setSuccessTime(parse.getSuccessTime());
wechatPayDao.updateApplyRefundLog(applyRefundLogDO);
......
......@@ -55,7 +55,7 @@
<if test="userReceivedAccount != null">
user_received_account = #{userReceivedAccount},
</if>
<if test="successTime != null and">
<if test="successTime != null">
success_time = #{successTime},
</if>
<if test="createTime != null">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论