|
|
@ -5680,6 +5680,10 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (StringUtils.isNotBlank(mainSchedule.getBankContractNo())) { |
|
|
|
importSleepData.setBankContractNo(mainSchedule.getBankContractNo()); |
|
|
|
} |
|
|
|
importSleepData.setSalesOrderSid(mainSchedule.getSalesOrderSid()); |
|
|
|
if (StringUtils.isNotBlank(mainSchedule.getBankName())) { |
|
|
|
importSleepData.setBankName(mainSchedule.getBankName()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
LoanRepaymentSchedule otherSchedule = baseMapper.selByOtherBankContractNoForSleepData(bankContractNo, vinNo); |
|
|
|
if (null != otherSchedule) { |
|
|
@ -5721,6 +5725,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (StringUtils.isNotBlank(otherSchedule.getOtherBankNo())) { |
|
|
|
importSleepData.setBankContractNo(otherSchedule.getOtherBankNo()); |
|
|
|
} |
|
|
|
importSleepData.setSalesOrderSid(otherSchedule.getSalesOrderSid()); |
|
|
|
} else { |
|
|
|
setMsg.add("资方合同号" + bankContractNo + ",车架号" + vinNo + "不存在,请先导入还款计划主表"); |
|
|
|
} |
|
|
@ -5883,6 +5888,8 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
} |
|
|
|
BigDecimal Q1 = Q; //Q的剩余金额 初始值Q1 = Q
|
|
|
|
BigDecimal T1 = T; //T的剩余金额 初始值T1 = T
|
|
|
|
BigDecimal TempL = L;//临时垫资方逾期利息
|
|
|
|
BigDecimal TempB = B;//临时资金占用费
|
|
|
|
boolean isOther = false; //资方是否相同 0否 1是
|
|
|
|
int md = 0; //主产品估算期数
|
|
|
|
int od = 0; //其他融估算期数
|
|
|
@ -6982,23 +6989,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentPlanListDetailsWxVo.setLenderName(loanRepaymentSchedule.getBorrowerName()); |
|
|
|
appRepaymentPlanListDetailsWxVo.setSalesName(loanRepaymentSchedule.getStaffName()); |
|
|
|
appRepaymentPlanListDetailsWxVo.setManagement(loanRepaymentSchedule.getBankName()); |
|
|
|
appRepaymentPlanListDetailsWxVo.setZcpDate(loanRepaymentSchedule.getMainPeriod() + "/" + loanRepaymentSchedule.getMainRepayDate() + "(首还)"); |
|
|
|
appRepaymentPlanListDetailsWxVo.setZcpDate(loanRepaymentSchedule.getMainPeriod() + "/" + DateUtil.formatDate(loanRepaymentSchedule.getMainRepayDate()) + "(首还)"); |
|
|
|
if ("1".equals(loanRepaymentSchedule.getIsOtherPolicy())){//有其他融
|
|
|
|
appRepaymentPlanListDetailsWxVo.setPtrDate(loanRepaymentSchedule.getOtherPeriod() + "/" + loanRepaymentSchedule.getOtherRepayDate() + "(首还)"); |
|
|
|
appRepaymentPlanListDetailsWxVo.setPtrDate(loanRepaymentSchedule.getOtherPeriod() + "/" + DateUtil.formatDate(loanRepaymentSchedule.getOtherRepayDate()) + "(首还)"); |
|
|
|
if ("1".equals(loanRepaymentSchedule.getSameBank())){//其他融资方与主产品相同
|
|
|
|
appRepaymentPlanListDetailsWxVo.setOtherManagement(appRepaymentPlanListDetailsWxVo.getManagement()); |
|
|
|
}else {//其他融资方与主产品不相同
|
|
|
|
List<LoanRepaymentPlanDetails> loanRepaymentPlanDetails = loanRepaymentPlanDetailsService.selByMainSidAndPolicyOrOther(scheduleSid, "1"); |
|
|
|
appRepaymentPlanListDetailsWxVo.setOtherManagement(loanRepaymentPlanDetails.get(0).getBankName()); |
|
|
|
} |
|
|
|
AppRepaymentPlanThead appRepaymentPlanThead4 = new AppRepaymentPlanThead(); |
|
|
|
appRepaymentPlanThead4.setName("otherMonthlyPaymentStr"); |
|
|
|
String[] qtrDate = loanRepaymentSchedule.getOtherRepayDate().toString().split("-"); |
|
|
|
appRepaymentPlanThead4.setLabel("其他融(" + qtrDate[qtrDate.length - 1] + "日)"); |
|
|
|
appRepaymentPlanThead4.setWidth("100"); |
|
|
|
appRepaymentPlanThead4.setEmptyString("-"); |
|
|
|
appRepaymentPlanThead4.setAlign("center"); |
|
|
|
appRepaymentPlanTheads.add(appRepaymentPlanThead4); |
|
|
|
} |
|
|
|
appRepaymentPlanListDetailsWxVo.setVinNo(vinNo); |
|
|
|
AppRepaymentPlanThead appRepaymentPlanThead1 = new AppRepaymentPlanThead(); |
|
|
@ -7018,15 +7017,25 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentPlanTheads.add(appRepaymentPlanThead2); |
|
|
|
AppRepaymentPlanThead appRepaymentPlanThead3 = new AppRepaymentPlanThead(); |
|
|
|
appRepaymentPlanThead3.setName("monthlyPaymentStr"); |
|
|
|
String[] zcpDate = loanRepaymentSchedule.getMainRepayDate().toString().split("-"); |
|
|
|
String[] zcpDate = DateUtil.formatDate(loanRepaymentSchedule.getMainRepayDate()).split("-"); |
|
|
|
appRepaymentPlanThead3.setLabel("月还(" + zcpDate[zcpDate.length - 1] + "日)"); |
|
|
|
appRepaymentPlanThead3.setWidth("100"); |
|
|
|
appRepaymentPlanThead3.setEmptyString("-"); |
|
|
|
appRepaymentPlanThead3.setAlign("center"); |
|
|
|
appRepaymentPlanTheads.add(appRepaymentPlanThead3); |
|
|
|
if ("1".equals(loanRepaymentSchedule.getIsOtherPolicy())){ |
|
|
|
AppRepaymentPlanThead appRepaymentPlanThead4 = new AppRepaymentPlanThead(); |
|
|
|
appRepaymentPlanThead4.setName("otherMonthlyPaymentStr"); |
|
|
|
String[] qtrDate = DateUtil.formatDate(loanRepaymentSchedule.getOtherRepayDate()).split("-"); |
|
|
|
appRepaymentPlanThead4.setLabel("其他融(" + qtrDate[qtrDate.length - 1] + "日)"); |
|
|
|
appRepaymentPlanThead4.setWidth("100"); |
|
|
|
appRepaymentPlanThead4.setEmptyString("-"); |
|
|
|
appRepaymentPlanThead4.setAlign("center"); |
|
|
|
appRepaymentPlanTheads.add(appRepaymentPlanThead4); |
|
|
|
} |
|
|
|
appRepaymentPlanListDetailsWxVo.setThead(appRepaymentPlanTheads); |
|
|
|
List<AppRepaymentPlanRecord> appRepaymentPlanRecords = loanRepaymentPlanDetailsService.selByMainSidAndVinNo(scheduleSid, vinNo); |
|
|
|
appRepaymentPlanListDetailsWxVo.setRecord(appRepaymentPlanRecords); |
|
|
|
appRepaymentPlanListDetailsWxVo.setRecords(appRepaymentPlanRecords); |
|
|
|
return appRepaymentPlanListDetailsWxVo; |
|
|
|
} |
|
|
|
|
|
|
@ -7038,7 +7047,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentHistoryThead1.setName("period"); |
|
|
|
appRepaymentHistoryThead1.setLabel("期数"); |
|
|
|
appRepaymentHistoryThead1.setFixed(true); |
|
|
|
appRepaymentHistoryThead1.setWidth("100"); |
|
|
|
appRepaymentHistoryThead1.setWidth("80"); |
|
|
|
appRepaymentHistoryThead1.setEmptyString("-"); |
|
|
|
appRepaymentHistoryThead1.setAlign("center"); |
|
|
|
appRepaymentHistoryTheads.add(appRepaymentHistoryThead1); |
|
|
@ -7052,7 +7061,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
AppRepaymentHistoryThead appRepaymentHistoryThead3 = new AppRepaymentHistoryThead(); |
|
|
|
appRepaymentHistoryThead3.setName("actualDate"); |
|
|
|
appRepaymentHistoryThead3.setLabel("实还日期"); |
|
|
|
appRepaymentHistoryThead3.setWidth("80"); |
|
|
|
appRepaymentHistoryThead3.setWidth("120"); |
|
|
|
appRepaymentHistoryThead3.setEmptyString("-"); |
|
|
|
appRepaymentHistoryThead3.setAlign("center"); |
|
|
|
appRepaymentHistoryTheads.add(appRepaymentHistoryThead3); |
|
|
@ -7072,7 +7081,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentHistoryTheads.add(appRepaymentHistoryThead5); |
|
|
|
appRepaymentHistoryListDetailsWxVo.setThead(appRepaymentHistoryTheads); |
|
|
|
List<AppRepaymentHistoryRecord> appRepaymentHistoryRecords = loanRepaymentHistoryService.selSchSidAndVinNo(scheduleSid,vinNo); |
|
|
|
appRepaymentHistoryListDetailsWxVo.setRecord(appRepaymentHistoryRecords); |
|
|
|
appRepaymentHistoryListDetailsWxVo.setRecords(appRepaymentHistoryRecords); |
|
|
|
return appRepaymentHistoryListDetailsWxVo; |
|
|
|
} |
|
|
|
} |
|
|
|