Browse Source

退款相关接口调试

skyline 2 years ago
parent
commit
8268819570

+ 1 - 1
service/src/main/java/com/kym/service/wechat/impl/WxPayServiceImpl.java

@@ -549,7 +549,7 @@ public class WxPayServiceImpl implements WxPayService {
             if (RefundLog.STATUS_退款成功.equals(refundNotification.getRefundStatus().name())) {
                 // 冻结金额扣减此次(退款金额+优惠金额),优惠金额字段减去申请退款时的优惠金额
                 accountService.lambdaUpdate().setSql("frozen_amount = (frozen_amount - (%d + %d) , discount_amount = (discount_amount - %d)"
-                                .formatted(refundNotification.getAmount().getRefund().intValue()), refundLog.getDiscountAmount(), refundLog.getDiscountAmount())
+                                .formatted(refundNotification.getAmount().getRefund().intValue(), refundLog.getDiscountAmount(), refundLog.getDiscountAmount()))
                         .eq(Account::getUserId, refundLog.getUserId()).update();
 
                 // 更新资金流水