提交 d75a6ad7 authored 作者: huyufan's avatar huyufan

Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118' into test

package com.clx.performance.service.impl.loan;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON;
......@@ -471,7 +472,9 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
log.info("查询ownerLoanRecords:{}", JSONUtil.parse(ownerLoanRecords));
Map<Integer, List<OwnerLoanRecord>> listMap = ownerLoanRecords.stream().collect(Collectors.groupingBy(OwnerLoanRecord::getLoanType));
for (OwnerLoanRecord ownerLoanRecord : listMap.get(OwnerLoanRecordEnum.LoanType.VIRTUAL_CURRENCY.getCode())) {
List<OwnerLoanRecord> verList = listMap.get(OwnerLoanRecordEnum.LoanType.VIRTUAL_CURRENCY.getCode());
if (CollectionUtil.isNotEmpty(verList)) {
for (OwnerLoanRecord ownerLoanRecord : verList) {
BigDecimal loanResidueBalance = ownerLoanRecord.getLoanResidueBalance();
log.info("当前借款金额:{},虚拟币借款单号{},借款剩余金额{}", orderChildPriceTemp, ownerLoanRecord.getLoanNo(), loanResidueBalance);
if (loanResidueBalance.compareTo(orderChildPriceTemp) >= 0) {
......@@ -488,8 +491,11 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
}
log.info("当前虚拟币orderChildPriceTemp:{}", orderChildPriceTemp);
}
}
for (OwnerLoanRecord ownerLoanRecord : listMap.get(OwnerLoanRecordEnum.LoanType.FUND.getCode())) {
List<OwnerLoanRecord> fundList = listMap.get(OwnerLoanRecordEnum.LoanType.FUND.getCode());
if (CollectionUtil.isNotEmpty(fundList)) {
for (OwnerLoanRecord ownerLoanRecord : fundList) {
BigDecimal loanResidueBalance = ownerLoanRecord.getLoanResidueBalance();
log.info("当前借款金额:{},资金借款单号{},借款剩余金额{}", orderChildPriceTemp, ownerLoanRecord.getLoanNo(), loanResidueBalance);
if (loanResidueBalance.compareTo(orderChildPriceTemp) >= 0) {
......@@ -506,6 +512,8 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
}
log.info("当前资金orderChildPriceTemp:{}", orderChildPriceTemp);
}
}
if (orderChildPriceTemp.compareTo(BigDecimal.ZERO) != 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论