|
|
@ -5257,6 +5257,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (sleep.equals("否")) { |
|
|
|
LoanRepaymentSchedule scheduleDetails = new LoanRepaymentSchedule(); |
|
|
|
scheduleDetails.setCreateBySid(userSid); |
|
|
|
scheduleDetails.setOrgSidPath(orgPath); |
|
|
|
String scheduleSid = scheduleDetails.getSid(); |
|
|
|
scheduleDetails.setIsOtherPolicy(isOther); |
|
|
|
scheduleDetails.setSameBank(sameBank); |
|
|
@ -5577,7 +5578,6 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
System.out.println("============================"); |
|
|
|
System.out.println(schedules); |
|
|
|
System.out.println("============================"); |
|
|
|
|
|
|
|
generateHistoryData(schedules, userSid); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
@ -5650,20 +5650,13 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
importSleepData.setPolicyOrOther("1"); |
|
|
|
} |
|
|
|
String salesOrderSid = mainSchedule.getSalesOrderSid(); |
|
|
|
BusSalesOrder order = busSalesOrderFeign.fetchBySid(salesOrderSid).getData(); |
|
|
|
if (null != order) { |
|
|
|
if (StringUtils.isNotBlank(order.getOrgSid())) { |
|
|
|
importSleepData.setDeptSid(order.getOrgSid()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(order.getOrgName())) { |
|
|
|
importSleepData.setDept(order.getOrgName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(order.getUseOrgSid())) { |
|
|
|
importSleepData.setUseOrgSid(order.getUseOrgSid()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(order.getOrgSidPath())) { |
|
|
|
importSleepData.setOrgSidPath(order.getOrgSidPath()); |
|
|
|
} |
|
|
|
String orgSidPath = mainSchedule.getOrgSidPath(); |
|
|
|
SysOrganizationVo deptData = sysOrganizationFeign.selectByOrgSidPath(orgSidPath).getData(); |
|
|
|
if (null != deptData) { |
|
|
|
importSleepData.setDeptSid(deptData.getSid()); |
|
|
|
importSleepData.setDept(deptData.getName()); |
|
|
|
importSleepData.setUseOrgSid(deptData.getPsid()); |
|
|
|
importSleepData.setOrgSidPath(orgSidPath); |
|
|
|
} |
|
|
|
BusSalesOrderVehicle orderVehicle = busSalesOrderVehicleFeign.selByOrderSidAndVinNo(salesOrderSid, vinNo).getData(); |
|
|
|
if (null != orderVehicle) { |
|
|
@ -7031,11 +7024,11 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentPlanListDetailsWxVo.setSalesName(loanRepaymentSchedule.getStaffName()); |
|
|
|
appRepaymentPlanListDetailsWxVo.setManagement(loanRepaymentSchedule.getBankName()); |
|
|
|
appRepaymentPlanListDetailsWxVo.setZcpDate(loanRepaymentSchedule.getMainPeriod() + "/" + DateUtil.formatDate(loanRepaymentSchedule.getMainRepayDate()) + "(首还)"); |
|
|
|
if ("1".equals(loanRepaymentSchedule.getIsOtherPolicy())){//有其他融
|
|
|
|
if ("1".equals(loanRepaymentSchedule.getIsOtherPolicy())) {//有其他融
|
|
|
|
appRepaymentPlanListDetailsWxVo.setPtrDate(loanRepaymentSchedule.getOtherPeriod() + "/" + DateUtil.formatDate(loanRepaymentSchedule.getOtherRepayDate()) + "(首还)"); |
|
|
|
if ("1".equals(loanRepaymentSchedule.getSameBank())){//其他融资方与主产品相同
|
|
|
|
if ("1".equals(loanRepaymentSchedule.getSameBank())) {//其他融资方与主产品相同
|
|
|
|
appRepaymentPlanListDetailsWxVo.setOtherManagement(appRepaymentPlanListDetailsWxVo.getManagement()); |
|
|
|
}else {//其他融资方与主产品不相同
|
|
|
|
} else {//其他融资方与主产品不相同
|
|
|
|
List<LoanRepaymentPlanDetails> loanRepaymentPlanDetails = loanRepaymentPlanDetailsService.selByMainSidAndPolicyOrOther(scheduleSid, "1"); |
|
|
|
appRepaymentPlanListDetailsWxVo.setOtherManagement(loanRepaymentPlanDetails.get(0).getBankName()); |
|
|
|
} |
|
|
@ -7064,7 +7057,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentPlanThead3.setEmptyString("-"); |
|
|
|
appRepaymentPlanThead3.setAlign("center"); |
|
|
|
appRepaymentPlanTheads.add(appRepaymentPlanThead3); |
|
|
|
if ("1".equals(loanRepaymentSchedule.getIsOtherPolicy())){ |
|
|
|
if ("1".equals(loanRepaymentSchedule.getIsOtherPolicy())) { |
|
|
|
AppRepaymentPlanThead appRepaymentPlanThead4 = new AppRepaymentPlanThead(); |
|
|
|
appRepaymentPlanThead4.setName("otherMonthlyPaymentStr"); |
|
|
|
String[] qtrDate = DateUtil.formatDate(loanRepaymentSchedule.getOtherRepayDate()).split("-"); |
|
|
@ -7121,7 +7114,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
appRepaymentHistoryThead5.setAlign("center"); |
|
|
|
appRepaymentHistoryTheads.add(appRepaymentHistoryThead5); |
|
|
|
appRepaymentHistoryListDetailsWxVo.setThead(appRepaymentHistoryTheads); |
|
|
|
List<AppRepaymentHistoryRecord> appRepaymentHistoryRecords = loanRepaymentHistoryService.selSchSidAndVinNo(scheduleSid,vinNo); |
|
|
|
List<AppRepaymentHistoryRecord> appRepaymentHistoryRecords = loanRepaymentHistoryService.selSchSidAndVinNo(scheduleSid, vinNo); |
|
|
|
appRepaymentHistoryListDetailsWxVo.setRecords(appRepaymentHistoryRecords); |
|
|
|
return appRepaymentHistoryListDetailsWxVo; |
|
|
|
} |
|
|
|