skyline пре 2 година
родитељ
комит
61f21004e7

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

@@ -548,7 +548,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)"
+                accountService.lambdaUpdate().setSql("frozen_amount = (frozen_amount - (%d + %d)) , discount_amount = (discount_amount - %d)"
                                 .formatted(refundNotification.getAmount().getRefund().intValue(), refundLog.getDiscountAmount(), refundLog.getDiscountAmount()))
                         .eq(Account::getUserId, refundLog.getUserId()).update();