|
|
@ -38,6 +38,8 @@ import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanbecollectionrecord.*; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehDetailsVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehFile; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatecustomer.LoanHomevisitInvestigateCustomer; |
|
|
@ -197,25 +199,45 @@ public class LoanBeCollectionRecordService extends MybatisBaseService<LoanBeColl |
|
|
|
loanBeCollectionRecordInit.setSpouseMobile(loanHomevisitInvestigateCustomerDetailsVo.getSpouseMobile()); |
|
|
|
List<LoanBeCollectionRecordVehInit> loanBeCollectionRecordVehInits = loanBeOverdueVehService.initVehListByBorrSid(busSalesOrderVehicle.getBorrowerSid()); |
|
|
|
for (LoanBeCollectionRecordVehInit loanBeCollectionRecordVehInit : loanBeCollectionRecordVehInits) { |
|
|
|
List<LoanBeCollectionVehFile> loanBeCollectionVehFiles = new ArrayList<>(); |
|
|
|
loanBeCollectionRecordVehInit.setCustNameAndPhone(loanBeCollectionRecordVehInit.getCustName() + loanBeCollectionRecordVehInit.getCustPhone()); |
|
|
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(loanBeCollectionRecordVehInit.getSalesOrderSid()).getData(); |
|
|
|
BusSalesOrderVehicle busSalesOrderVehicle1 = busSalesOrderVehicleFeign.details(loanBeCollectionRecordVehInit.getSaleVehSid()).getData(); |
|
|
|
loanBeCollectionRecordVehInit.setReaRepaymentNameAndPhone(busSalesOrderVehicle1.getReaRepaymentName() + busSalesOrderVehicle1.getReaRepaymentPhone()); |
|
|
|
//催收记录sid
|
|
|
|
loanBeCollectionRecordVehInit.setSaleVehSid(loanBeCollectionRecordVehInit.getSaleVehSid()); |
|
|
|
LoanBeCollectionVehFile loanBeCollectionVehFile1 = new LoanBeCollectionVehFile(); |
|
|
|
loanBeCollectionVehFile1.setName("催收记录"); |
|
|
|
loanBeCollectionVehFile1.setSid(loanBeCollectionRecordVehInit.getSaleVehSid()); |
|
|
|
loanBeCollectionVehFiles.add(loanBeCollectionVehFile1); |
|
|
|
//开票管理sid
|
|
|
|
FinVehicleInvoice finVehicleInvoice = finVehicleInvoiceFeign.selectByVinAndContractNo(busSalesOrderVehicle1.getLinkSid(), busSalesOrder.getContractNo()).getData(); |
|
|
|
//loanBeCollectionRecordVehInit.setKpglSid(finVehicleInvoice.getSid());
|
|
|
|
LoanBeCollectionVehFile loanBeCollectionVehFile2 = new LoanBeCollectionVehFile(); |
|
|
|
loanBeCollectionVehFile2.setName("开票信息"); |
|
|
|
loanBeCollectionVehFile2.setSid(finVehicleInvoice.getSid()); |
|
|
|
loanBeCollectionVehFiles.add(loanBeCollectionVehFile2); |
|
|
|
//月还明细sid
|
|
|
|
loanBeCollectionRecordVehInit.setYhmxSid(saleVehSid); |
|
|
|
LoanBeCollectionVehFile loanBeCollectionVehFile3 = new LoanBeCollectionVehFile(); |
|
|
|
loanBeCollectionVehFile3.setName("月还明细"); |
|
|
|
loanBeCollectionVehFile3.setSid(saleVehSid); |
|
|
|
loanBeCollectionVehFiles.add(loanBeCollectionVehFile3); |
|
|
|
//金融方案sid
|
|
|
|
LoanSolutions loanSolutions = loanSolutionsService.selectBySaleOrderSid(loanBeCollectionRecordVehInit.getSalesOrderSid()); |
|
|
|
loanBeCollectionRecordVehInit.setJrfaSid(loanSolutions.getSid()); |
|
|
|
LoanBeCollectionVehFile loanBeCollectionVehFile4 = new LoanBeCollectionVehFile(); |
|
|
|
loanBeCollectionVehFile4.setName("金融方案"); |
|
|
|
loanBeCollectionVehFile4.setSid(loanBeCollectionRecordVehInit.getSalesOrderSid()); |
|
|
|
loanBeCollectionVehFiles.add(loanBeCollectionVehFile4); |
|
|
|
//家访考察报告sid
|
|
|
|
String sid = loanHomevisitInvestigateService.selectByBorrSid(busSalesOrderVehicle.getBorrowerSid()); |
|
|
|
loanBeCollectionRecordVehInit.setKcbgSid(sid); |
|
|
|
LoanBeCollectionVehFile loanBeCollectionVehFile5 = new LoanBeCollectionVehFile(); |
|
|
|
loanBeCollectionVehFile5.setName("家访考察报告"); |
|
|
|
loanBeCollectionVehFile5.setSid(sid); |
|
|
|
loanBeCollectionVehFiles.add(loanBeCollectionVehFile5); |
|
|
|
//家访考察资料sid
|
|
|
|
loanBeCollectionRecordVehInit.setKczlSid(sid); |
|
|
|
LoanBeCollectionVehFile loanBeCollectionVehFile6 = new LoanBeCollectionVehFile(); |
|
|
|
loanBeCollectionVehFile6.setName("家访考察资料"); |
|
|
|
loanBeCollectionVehFile6.setSid(sid); |
|
|
|
loanBeCollectionVehFiles.add(loanBeCollectionVehFile6); |
|
|
|
loanBeCollectionRecordVehInit.setSids(loanBeCollectionVehFiles); |
|
|
|
loanBeCollectionRecordVehInits.add(loanBeCollectionRecordVehInit); |
|
|
|
} |
|
|
|
loanBeCollectionRecordInit.setLoanBeCollectionRecordVehInitList(loanBeCollectionRecordVehInits); |
|
|
|
return loanBeCollectionRecordInit; |
|
|
|