交易分账 重构

This commit is contained in:
2023-08-28 15:05:24 +08:00
parent 7a9361af9d
commit 517b88f6a2
2 changed files with 25 additions and 11 deletions

View File

@@ -2830,6 +2830,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
this.updateOrderBasicInfo(orderInfo);
// 记录订单支付流水
List<OrderPayRecord> orderPayRecordList = Lists.newArrayList();
OrderPayRecord orderPayRecord = OrderPayRecord.builder()
.orderCode(dto.getOrderCode())
.payMode(dto.getPayMode())
@@ -2837,7 +2838,8 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
.acquirer(dto.getAcquirer())
.createBy(null)
.build();
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));
orderPayRecordList.add(orderPayRecord);
orderPayRecordService.batchInsert(orderPayRecordList);
// 是否发送启动指令
boolean sendStartCharging = true;