mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
交易分账 重构
This commit is contained in:
@@ -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(); // 订单编号
|
||||
|
||||
Reference in New Issue
Block a user