Commit 5a0c556c by gonglei

加入框架代码

1 parent e175a5b9
......@@ -69,9 +69,9 @@ public class WxpayController {
if ("recharge".equals(attach)) {
// 充值成功通知
transactionService.notifyRecharge(outTradeNo, openid, transactionId);
} else if ("order".equals(attach)) {
} else if ("order".equals(attach)) {
// 车款支付成功通知
transactionService.notifyAuctionOrder(outTradeNo, decryptRes.getAmount().getTotal() * 100, transactionId);
transactionService.notifyAuctionOrder(outTradeNo, decryptRes.getAmount().getTotal() / 100D, transactionId);
}
}
//成功返回200/204,body无需有内容
......@@ -109,7 +109,7 @@ public class WxpayController {
WxPayRefundNotifyV3Result res = this.wxService.parseRefundNotifyV3Result(notifyData, header);
WxPayRefundNotifyV3Result.DecryptNotifyResult decryptRes = res.getResult();
log.info("回调退款通知notify/refund开始");
log.info("回调退款OutRefundNo:"+decryptRes.getOutRefundNo());
log.info("回调退款OutRefundNo:" + decryptRes.getOutRefundNo());
// 根据自己业务场景需要构造返回对象
if (WxPayConstants.RefundStatus.SUCCESS.equals(decryptRes.getRefundStatus())) {
transactionService.notifyRechargeRefund(decryptRes);
......
......@@ -217,9 +217,12 @@ ALTER TABLE withdraw ADD AUDITOR VARCHAR(32)
COMMENT '审核人' NULL after REFUND_AMOUNT;
# 2026-01-18
/* 2026-01-18****/
ALTER TABLE commission_rule ADD MIN_PRICE DECIMAL(16, 2) DEFAULT 0
COMMENT '最低成交价' NOT NULL after APPLICABLE_TYPE;
ALTER TABLE commission_rule ADD MAX_PRICE DECIMAL(16, 2) DEFAULT 0
COMMENT '最高成交价' NOT NULL after MIN_PRICE;
\ No newline at end of file
COMMENT '最高成交价' NOT NULL after MIN_PRICE;
/* 2026-01-22****/
update order_transaction ot set ot.AMOUNT=(select (ao.ORDER_PRICE+ao.COMMISSION_PRICE) FROM auction_order ao where ao.ORDER_ID=ot.ORDER_ID) where ot.PAYMENT_TYPE='WXPAY';
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!