订单支付记录保存支付id

This commit is contained in:
Guoqs
2024-06-04 16:05:14 +08:00
parent 5b61f2d968
commit 9b458d73cb
2 changed files with 3 additions and 2 deletions

View File

@@ -1126,10 +1126,11 @@ public class OrderService {
OrderPayRecord orderPayRecord = OrderPayRecord.builder()
.orderCode(orderCode)
.payMode(OrderPayRecordEnum.WECHATPAY_PAYMENT.getValue())
.paymentId(paymentId)
.payAmount(amount)
.acquirer(AcquirerEnum.ADAPAY.getValue())
.deductionRecord(JSON.toJSONString(paymentInfo))
.createBy(null)
.createBy(memberId)
.delFlag(DelFlagEnum.NORMAL.getValue())
.build();
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));

View File

@@ -854,7 +854,7 @@
t1.trade_amount as tradeAmount,
t1.trade_fee as tradeFee
from settle_order_report t1
join pile_station_info t2 on t1.station_id = t2.id
join pile_station_info t2 on t1.station_id = t2.id
where t1.del_flag = '0'
<if test="dto.merchantId != null and dto.merchantId != ''">
and t1.merchant_id = #{dto.merchantId,jdbcType=VARCHAR}