update 余额订单分账

This commit is contained in:
2023-09-27 10:57:36 +08:00
parent bc12d74781
commit 45871490e4

View File

@@ -478,6 +478,7 @@ public class TempService {
if (CollectionUtils.isEmpty(orderPayRecordList)) {
return;
}
BigDecimal settleAmount = orderBasicInfo.getSettleAmount();
OrderPayRecord record = orderPayRecordList.get(0);
String deductionRecord = record.getDeductionRecord();
AbstractOrderLogic orderLogic = new DelayMerchantOrderLogic();
@@ -495,6 +496,7 @@ public class TempService {
}
List<QueryPaymentConfirmDetailResponse.PaymentConfirmInfo> confirms = response.getPaymentConfirms();
if (CollectionUtils.isNotEmpty(confirms)) {
// 已经分过账
for (QueryPaymentConfirmDetailResponse.PaymentConfirmInfo confirm : confirms) {
JSONObject jsonObject = JSON.parseObject(confirm.getDescription());
@@ -512,6 +514,9 @@ public class TempService {
}
}
}
} else {
// 未分账情况
adapayService.createPaymentConfirmRequest(paymentId, adapayMemberAccount, settleAmount, orderCode, wechatAppId);
}
}
}