交易分账 重构

This commit is contained in:
2023-08-28 17:27:57 +08:00
parent 38dbafa116
commit d1b0d40e24
2 changed files with 31 additions and 36 deletions

View File

@@ -2832,18 +2832,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
orderInfo.setPayTime(new Date());
this.updateOrderBasicInfo(orderInfo);
// 记录订单支付流水
List<OrderPayRecord> orderPayRecordList = Lists.newArrayList();
OrderPayRecord orderPayRecord = OrderPayRecord.builder()
.orderCode(dto.getOrderCode())
.payMode(dto.getPayMode())
.payAmount(payAmount)
.acquirer(dto.getAcquirer())
.createBy(null)
.build();
orderPayRecordList.add(orderPayRecord);
orderPayRecordService.batchInsert(orderPayRecordList);
// 是否发送启动指令
boolean sendStartCharging = true;
@@ -2999,7 +2987,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
* 去除赠送金额相关的代码
* @param dto
*/
private void balancePayOrder(PayOrderDTO dto) {
/*private void balancePayOrder(PayOrderDTO dto) {
// 记录支付流水
List<OrderPayRecord> payRecordList = Lists.newArrayList();
String orderCode = dto.getOrderCode();
@@ -3089,7 +3077,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
if (CollectionUtils.isNotEmpty(payRecordList)) {
orderPayRecordService.batchInsert(payRecordList);
}
}
}*/
private void balancePayOrderV2(PayOrderDTO dto) {
String orderCode = dto.getOrderCode(); // 订单编号