|
|
@ -186,9 +186,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
} |
|
|
|
// 主产品首期月还
|
|
|
|
if (null != schedule.getMainFirstRepay()) { |
|
|
|
|
|
|
|
vo.setMainFirstRepay(schedule.getMainFirstRepay().toString()); |
|
|
|
|
|
|
|
} |
|
|
|
// 主产品期间月还
|
|
|
|
if (null != schedule.getMainMidRepay()) { |
|
|
@ -405,6 +403,12 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (!vehicles.isEmpty()) { |
|
|
|
for (BusSalesOrderVehicle vehicle : vehicles) { |
|
|
|
String linkNo = vehicle.getLinkNo(); |
|
|
|
String vinNo = ""; |
|
|
|
if (linkNo.length() > 8) { |
|
|
|
vinNo = linkNo.substring(linkNo.length() - 8); |
|
|
|
} else { |
|
|
|
vinNo = linkNo; |
|
|
|
} |
|
|
|
String busVinSid = vehicle.getSid(); |
|
|
|
//主方案
|
|
|
|
for (int i = 0; i < mainPeriod; i++) { |
|
|
@ -428,7 +432,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
mainDto.setUseOrgName(useOrgName); |
|
|
|
mainDto.setOrgSidPath(orgSidPath); |
|
|
|
mainDto.setBusVinSid(busVinSid); |
|
|
|
mainDto.setVinNo(linkNo); |
|
|
|
mainDto.setVinNo(vinNo); |
|
|
|
mainDto.setSalesUserSid(staffSid); |
|
|
|
mainDto.setStaffName(staffName); |
|
|
|
mainDto.setPolicyOrOther("0"); |
|
|
@ -467,7 +471,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
otherDto.setUseOrgName(useOrgName); |
|
|
|
otherDto.setOrgSidPath(orgSidPath); |
|
|
|
otherDto.setBusVinSid(busVinSid); |
|
|
|
otherDto.setVinNo(linkNo); |
|
|
|
otherDto.setVinNo(vinNo); |
|
|
|
otherDto.setSalesUserSid(staffSid); |
|
|
|
otherDto.setStaffName(staffName); |
|
|
|
otherDto.setPolicyOrOther("1"); |
|
|
@ -559,6 +563,12 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (!vehicles.isEmpty()) { |
|
|
|
for (BusSalesOrderVehicle vehicle : vehicles) { |
|
|
|
String linkNo = vehicle.getLinkNo(); |
|
|
|
String vinNo = ""; |
|
|
|
if (linkNo.length() > 8) { |
|
|
|
vinNo = linkNo.substring(linkNo.length() - 8); |
|
|
|
} else { |
|
|
|
vinNo = linkNo; |
|
|
|
} |
|
|
|
String busVinSid = vehicle.getSid(); |
|
|
|
//主方案
|
|
|
|
for (int i = 0; i < mainPeriod; i++) { |
|
|
@ -582,7 +592,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
mainDto.setUseOrgName(useOrgName); |
|
|
|
mainDto.setOrgSidPath(orgSidPath); |
|
|
|
mainDto.setBusVinSid(busVinSid); |
|
|
|
mainDto.setVinNo(linkNo); |
|
|
|
mainDto.setVinNo(vinNo); |
|
|
|
mainDto.setSalesUserSid(staffSid); |
|
|
|
mainDto.setStaffName(staffName); |
|
|
|
mainDto.setPolicyOrOther("1"); |
|
|
@ -642,7 +652,18 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (!busSalesOrderVehicles.isEmpty()) { |
|
|
|
List<String> stringVinNos = busSalesOrderVehicles.stream().map(c -> c.getLinkNo()).collect(Collectors.toList()); |
|
|
|
if (!stringVinNos.isEmpty()) { |
|
|
|
entity.setVinNo(String.join(",", stringVinNos)); |
|
|
|
List<String> vinList = new ArrayList<>(); |
|
|
|
for (String linkNo : stringVinNos) { |
|
|
|
String vinNo = ""; |
|
|
|
if (linkNo.length() > 8) { |
|
|
|
vinNo = linkNo.substring(linkNo.length() - 8); |
|
|
|
|
|
|
|
} else { |
|
|
|
vinNo = linkNo; |
|
|
|
} |
|
|
|
vinList.add(vinNo); |
|
|
|
} |
|
|
|
entity.setVinNo(String.join(",", vinList)); |
|
|
|
} |
|
|
|
} |
|
|
|
BusSalesOrderLoancontractDetailsVo loancontractVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(dto.getSalesOrderSid()).getData(); |
|
|
@ -751,6 +772,12 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (!vehicles.isEmpty()) { |
|
|
|
for (BusSalesOrderVehicle vehicle : vehicles) { |
|
|
|
String linkNo = vehicle.getLinkNo(); |
|
|
|
String vinNo = ""; |
|
|
|
if (linkNo.length() > 8) { |
|
|
|
vinNo = linkNo.substring(linkNo.length() - 8); |
|
|
|
} else { |
|
|
|
vinNo = linkNo; |
|
|
|
} |
|
|
|
String busVinSid = vehicle.getSid(); |
|
|
|
//主方案
|
|
|
|
for (int i = 0; i < mainPeriod; i++) { |
|
|
@ -774,7 +801,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
mainDto.setUseOrgName(useOrgName); |
|
|
|
mainDto.setOrgSidPath(orgSidPath); |
|
|
|
mainDto.setBusVinSid(busVinSid); |
|
|
|
mainDto.setVinNo(linkNo); |
|
|
|
mainDto.setVinNo(vinNo); |
|
|
|
mainDto.setSalesUserSid(staffSid); |
|
|
|
mainDto.setStaffName(staffName); |
|
|
|
mainDto.setPolicyOrOther("0"); |
|
|
@ -813,7 +840,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
otherDto.setUseOrgName(useOrgName); |
|
|
|
otherDto.setOrgSidPath(orgSidPath); |
|
|
|
otherDto.setBusVinSid(busVinSid); |
|
|
|
otherDto.setVinNo(linkNo); |
|
|
|
otherDto.setVinNo(vinNo); |
|
|
|
otherDto.setSalesUserSid(staffSid); |
|
|
|
otherDto.setStaffName(staffName); |
|
|
|
otherDto.setPolicyOrOther("1"); |
|
|
@ -904,6 +931,12 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (!vehicles.isEmpty()) { |
|
|
|
for (BusSalesOrderVehicle vehicle : vehicles) { |
|
|
|
String linkNo = vehicle.getLinkNo(); |
|
|
|
String vinNo = ""; |
|
|
|
if (linkNo.length() > 8) { |
|
|
|
vinNo = linkNo.substring(linkNo.length() - 8); |
|
|
|
} else { |
|
|
|
vinNo = linkNo; |
|
|
|
} |
|
|
|
String busVinSid = vehicle.getSid(); |
|
|
|
//主方案
|
|
|
|
for (int i = 0; i < mainPeriod; i++) { |
|
|
@ -927,7 +960,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
mainDto.setUseOrgName(useOrgName); |
|
|
|
mainDto.setOrgSidPath(orgSidPath); |
|
|
|
mainDto.setBusVinSid(busVinSid); |
|
|
|
mainDto.setVinNo(linkNo); |
|
|
|
mainDto.setVinNo(vinNo); |
|
|
|
mainDto.setSalesUserSid(staffSid); |
|
|
|
mainDto.setStaffName(staffName); |
|
|
|
mainDto.setPolicyOrOther("1"); |
|
|
@ -1232,7 +1265,18 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
|
if (!busSalesOrderVehicles.isEmpty()) { |
|
|
|
List<String> stringVinNos = busSalesOrderVehicles.stream().map(c -> c.getLinkNo()).collect(Collectors.toList()); |
|
|
|
if (!stringVinNos.isEmpty()) { |
|
|
|
vo.setVinNo(String.join(",", stringVinNos)); |
|
|
|
List<String> vinList = new ArrayList<>(); |
|
|
|
for (String linkNo : stringVinNos) { |
|
|
|
String vinNo = ""; |
|
|
|
if (linkNo.length() > 8) { |
|
|
|
vinNo = linkNo.substring(linkNo.length() - 8); |
|
|
|
|
|
|
|
} else { |
|
|
|
vinNo = linkNo; |
|
|
|
} |
|
|
|
vinList.add(vinNo); |
|
|
|
} |
|
|
|
vo.setVinNo(String.join(",", vinList)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|