Commit 82e06d33 authored by 张庆's avatar 张庆

最受结果

parent cf5e586d
......@@ -55,12 +55,12 @@ public class SyncLoanCommand extends AbstractCommand {
BigDecimal loanAmt = syncLoanRequest.getPlanList().stream().map(SyncLoanRequest.LoanPlan::getPlanAmt).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal raiseAmt = syncLoanRequest.getPlanList().stream().map(SyncLoanRequest.LoanPlan::getPlanBen).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal rateAmt = syncLoanRequest.getPlanList().stream().map(SyncLoanRequest.LoanPlan::getPlanXi).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal serviceAmt = syncLoanRequest.getPlanList().stream().map(SyncLoanRequest.LoanPlan::getPlanFu).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal burdenAmt = syncLoanRequest.getPlanList().stream().map(SyncLoanRequest.LoanPlan::getPlanBurden).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add);
loanModel.setLoanAmt(loanAmt);
loanModel.setRaiseAmt(raiseAmt);
loanModel.setServiceAmt(serviceAmt);
loanModel.setServiceAmt(BigDecimal.ZERO);
loanModel.setRateAmt(rateAmt);
loanModel.setBurdenAmt(BigDecimal.ZERO);
loanModel.setBurdenAmt(burdenAmt);
loanModel.setLoanUsage(syncLoanRequest.getLoanUsage());
loanModel.setRaiseDate(LocalDateTime.parse(syncLoanRequest.getRaiseDate()));
loanModel.setLoanStatus(LoanStatusEnum.BACKING.name());
......@@ -74,6 +74,7 @@ public class SyncLoanCommand extends AbstractCommand {
String planNo = iSeqNoGenerateComponent.genCommonSeqNo(BizSeqNoConfig.PLAN_NO_KEY, BizSeqNoConfig.PLAN_NO_PREFIX);
LoanPlanModel loanPlanModel = BeanUtil.toBean(loanPlan, LoanPlanModel.class);
loanPlanModel.setPlanNo(planNo);
loanPlanModel.setStatus("BACKING");
//新增
loanPlanComponent.insert(loanPlanModel);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment