|
@ -672,17 +672,41 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
//根据销售订单sid查询是否有挂车或上装
|
|
|
//根据销售订单sid查询是否有挂车或上装
|
|
|
List<BusSalesOrderMakeupDetailsVo> salesOrderMakeupDetailsVos = busSalesOrderMakeupFeign.selectTopByOrderSid(saleOrderSid).getData(); |
|
|
List<BusSalesOrderMakeupDetailsVo> salesOrderMakeupDetailsVos = busSalesOrderMakeupFeign.selectTopByOrderSid(saleOrderSid).getData(); |
|
|
List<BusSalesOrderTrailerDetailsVo> salesOrderTrailerDetailsVos = busSalesOrderTrailerFeign.fetchDetailsByOrderSid(saleOrderSid).getData(); |
|
|
List<BusSalesOrderTrailerDetailsVo> salesOrderTrailerDetailsVos = busSalesOrderTrailerFeign.fetchDetailsByOrderSid(saleOrderSid).getData(); |
|
|
if (salesOrderMakeupDetailsVos != null && salesOrderMakeupDetailsVos.size() > 0){ |
|
|
if (salesOrderMakeupDetailsVos != null && salesOrderMakeupDetailsVos.size() > 0) { |
|
|
loanHomeVisitInvestigateInitCustomerVo.setSzOrGc("上装"); |
|
|
loanHomeVisitInvestigateInitCustomerVo.setSzOrGc("上装"); |
|
|
if ("01".equals(salesOrderMakeupDetailsVos.get(0).getBuyTypeKey())){ |
|
|
if ("01".equals(salesOrderMakeupDetailsVos.get(0).getBuyTypeKey())) { |
|
|
loanHomeVisitInvestigateInitCustomerVo.setIsCompBuy("0"); |
|
|
loanHomeVisitInvestigateInitCustomerVo.setIsCompBuy("0"); |
|
|
}else if ("02".equals(salesOrderMakeupDetailsVos.get(0).getBuyTypeKey())){ |
|
|
} else if ("02".equals(salesOrderMakeupDetailsVos.get(0).getBuyTypeKey())) { |
|
|
loanHomeVisitInvestigateInitCustomerVo.setIsCompBuy("1"); |
|
|
loanHomeVisitInvestigateInitCustomerVo.setIsCompBuy("1"); |
|
|
} |
|
|
} |
|
|
}else if (salesOrderTrailerDetailsVos != null && salesOrderTrailerDetailsVos.size() > 0){ |
|
|
} |
|
|
|
|
|
if (salesOrderTrailerDetailsVos != null && salesOrderTrailerDetailsVos.size() > 0) { |
|
|
loanHomeVisitInvestigateInitCustomerVo.setSzOrGc("挂车"); |
|
|
loanHomeVisitInvestigateInitCustomerVo.setSzOrGc("挂车"); |
|
|
} |
|
|
} |
|
|
return rb.success().setData(loanHomeVisitInvestigateInitCustomerVo); |
|
|
return rb.success().setData(loanHomeVisitInvestigateInitCustomerVo); |
|
|
|
|
|
}else { |
|
|
|
|
|
String saleOrderSid = ""; |
|
|
|
|
|
LoanHomevisitInvestigate loanHomevisitInvestigate = fetchBySid(sid); |
|
|
|
|
|
if (loanHomevisitInvestigate == null) { |
|
|
|
|
|
LoanHomevisitPrep loanHomevisitPrep = loanHomevisitPrepService.fetchBySid(sid); |
|
|
|
|
|
saleOrderSid = loanHomevisitPrep.getSaleOrderSid(); |
|
|
|
|
|
} else { |
|
|
|
|
|
saleOrderSid = loanHomevisitInvestigate.getSaleOrderSid(); |
|
|
|
|
|
} |
|
|
|
|
|
//根据销售订单sid查询是否有挂车或上装
|
|
|
|
|
|
List<BusSalesOrderMakeupDetailsVo> salesOrderMakeupDetailsVos = busSalesOrderMakeupFeign.selectTopByOrderSid(saleOrderSid).getData(); |
|
|
|
|
|
List<BusSalesOrderTrailerDetailsVo> salesOrderTrailerDetailsVos = busSalesOrderTrailerFeign.fetchDetailsByOrderSid(saleOrderSid).getData(); |
|
|
|
|
|
if (salesOrderMakeupDetailsVos != null && salesOrderMakeupDetailsVos.size() > 0) { |
|
|
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setSzOrGc("上装"); |
|
|
|
|
|
if ("01".equals(salesOrderMakeupDetailsVos.get(0).getBuyTypeKey())) { |
|
|
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setIsCompBuy("0"); |
|
|
|
|
|
} else if ("02".equals(salesOrderMakeupDetailsVos.get(0).getBuyTypeKey())) { |
|
|
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setIsCompBuy("1"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (salesOrderTrailerDetailsVos != null && salesOrderTrailerDetailsVos.size() > 0) { |
|
|
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setSzOrGc("挂车"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//银行卡附件
|
|
|
//银行卡附件
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> loanHomevisitInvestigateFileDetailsVos = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
List<LoanHomevisitInvestigateFileDetailsVo> loanHomevisitInvestigateFileDetailsVos = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.YHK.getAttachType()); |
|
@ -773,12 +797,12 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
loanHomevisitInvestigateCustomerDto.setIsCompBuy(dto.getIsCompBuy()); |
|
|
loanHomevisitInvestigateCustomerDto.setIsCompBuy(dto.getIsCompBuy()); |
|
|
loanHomevisitInvestigateCustomerDto.setConSetUpKey(dto.getConSetUpKey()); |
|
|
loanHomevisitInvestigateCustomerDto.setConSetUpKey(dto.getConSetUpKey()); |
|
|
loanHomevisitInvestigateCustomerService.saveOrUpdateDto(loanHomevisitInvestigateCustomerDto); |
|
|
loanHomevisitInvestigateCustomerService.saveOrUpdateDto(loanHomevisitInvestigateCustomerDto); |
|
|
if (StringUtils.isNotBlank(loanHomevisitInvestigateCustomerDto.getAccCompRegistNum())){ |
|
|
if (StringUtils.isNotBlank(loanHomevisitInvestigateCustomerDto.getAccCompRegistNum())) { |
|
|
LoanHomevisitInvestigate loanHomevisitInvestigate = fetchBySid(loanHomevisitInvestigateCustomerDto.getMainSid()); |
|
|
LoanHomevisitInvestigate loanHomevisitInvestigate = fetchBySid(loanHomevisitInvestigateCustomerDto.getMainSid()); |
|
|
if (loanHomevisitInvestigate != null && StringUtils.isNotBlank(loanHomevisitInvestigate.getSaleOrderSid())){ |
|
|
if (loanHomevisitInvestigate != null && StringUtils.isNotBlank(loanHomevisitInvestigate.getSaleOrderSid())) { |
|
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(loanHomevisitInvestigate.getSaleOrderSid()).getData(); |
|
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(loanHomevisitInvestigate.getSaleOrderSid()).getData(); |
|
|
FinCompanyInvoicingDetailsVo finCompanyInvoicingDetailsVo = finCompanyInvoicingFeign.selByTaxpayerNoAndUseOrgSid(loanHomevisitInvestigateCustomerDto.getAccCompRegistNum(), busSalesOrder.getUseOrgSid()).getData(); |
|
|
FinCompanyInvoicingDetailsVo finCompanyInvoicingDetailsVo = finCompanyInvoicingFeign.selByTaxpayerNoAndUseOrgSid(loanHomevisitInvestigateCustomerDto.getAccCompRegistNum(), busSalesOrder.getUseOrgSid()).getData(); |
|
|
if (finCompanyInvoicingDetailsVo == null){ |
|
|
if (finCompanyInvoicingDetailsVo == null) { |
|
|
FinCompanyInvoicingDto finCompanyInvoicingDto = new FinCompanyInvoicingDto(); |
|
|
FinCompanyInvoicingDto finCompanyInvoicingDto = new FinCompanyInvoicingDto(); |
|
|
finCompanyInvoicingDto.setUseOrgSid(busSalesOrder.getUseOrgSid()); |
|
|
finCompanyInvoicingDto.setUseOrgSid(busSalesOrder.getUseOrgSid()); |
|
|
finCompanyInvoicingDto.setName(loanHomevisitInvestigateCustomerDto.getAccCompName()); |
|
|
finCompanyInvoicingDto.setName(loanHomevisitInvestigateCustomerDto.getAccCompName()); |
|
@ -1669,7 +1693,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
financeForm70.setValue("实际经营地址:" + loanHomevisitInvestigateCustomerDetailsVo.getAccCompxAddress()); |
|
|
financeForm70.setValue("实际经营地址:" + loanHomevisitInvestigateCustomerDetailsVo.getAccCompxAddress()); |
|
|
financeForm70.setSpanSize(2); |
|
|
financeForm70.setSpanSize(2); |
|
|
otherInfo.add(financeForm70); |
|
|
otherInfo.add(financeForm70); |
|
|
if (StringUtils.isNotBlank(loanHomevisitInvestigateCustomerDetailsVo.getIsCompBuy())){ |
|
|
if (StringUtils.isNotBlank(loanHomevisitInvestigateCustomerDetailsVo.getIsCompBuy())) { |
|
|
if ("0".equals(loanHomevisitInvestigateCustomerDetailsVo.getIsCompBuy())) { |
|
|
if ("0".equals(loanHomevisitInvestigateCustomerDetailsVo.getIsCompBuy())) { |
|
|
FinanceForm financeForm74 = new FinanceForm(); |
|
|
FinanceForm financeForm74 = new FinanceForm(); |
|
|
financeForm74.setValue("挂车或上装是否公司采购:是"); |
|
|
financeForm74.setValue("挂车或上装是否公司采购:是"); |
|
@ -2064,7 +2088,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
loanHomevisitInvestigateDetailsPCVo.setRemarks(loanHomevisitInvestigate.getRemarks()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setRemarks(loanHomevisitInvestigate.getRemarks()); |
|
|
//借款人
|
|
|
//借款人
|
|
|
LoanHomevisitInvestigateCustomerDetailsVo loanHomevisitInvestigateCustomerDetailsVo = loanHomevisitInvestigateCustomerService.selByMainSid(sid); |
|
|
LoanHomevisitInvestigateCustomerDetailsVo loanHomevisitInvestigateCustomerDetailsVo = loanHomevisitInvestigateCustomerService.selByMainSid(sid); |
|
|
if (loanHomevisitInvestigateCustomerDetailsVo != null){ |
|
|
if (loanHomevisitInvestigateCustomerDetailsVo != null) { |
|
|
loanHomevisitInvestigateDetailsPCVo.setIsConfirmRealBuyer(loanHomevisitInvestigateCustomerDetailsVo.getIsConfirmRealBuyer()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setIsConfirmRealBuyer(loanHomevisitInvestigateCustomerDetailsVo.getIsConfirmRealBuyer()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setBorrowerName(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerName()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setBorrowerName(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerName()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setBorrowerIdNumber(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerIdNumber()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setBorrowerIdNumber(loanHomevisitInvestigateCustomerDetailsVo.getBorrowerIdNumber()); |
|
@ -2129,7 +2153,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
loanHomevisitInvestigateDetailsPCVo.setLoanHomevisitInvestigateOtherpeoDetailsPCVoList(loanHomevisitInvestigateOtherpeoDetailsPCVos); |
|
|
loanHomevisitInvestigateDetailsPCVo.setLoanHomevisitInvestigateOtherpeoDetailsPCVoList(loanHomevisitInvestigateOtherpeoDetailsPCVos); |
|
|
//订单信息
|
|
|
//订单信息
|
|
|
LoanHomevisitInvestigateOrderDetailsVo loanHomevisitInvestigateOrderDetailsVo = loanHomevisitInvestigateOrderService.selByMainSid(sid); |
|
|
LoanHomevisitInvestigateOrderDetailsVo loanHomevisitInvestigateOrderDetailsVo = loanHomevisitInvestigateOrderService.selByMainSid(sid); |
|
|
if (loanHomevisitInvestigateOrderDetailsVo != null){ |
|
|
if (loanHomevisitInvestigateOrderDetailsVo != null) { |
|
|
loanHomevisitInvestigateDetailsPCVo.setCarConfirm(loanHomevisitInvestigateOrderDetailsVo.getCarConfirm()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setCarConfirm(loanHomevisitInvestigateOrderDetailsVo.getCarConfirm()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setCarRemarks(loanHomevisitInvestigateOrderDetailsVo.getCarRemarks()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setCarRemarks(loanHomevisitInvestigateOrderDetailsVo.getCarRemarks()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setFinConfirm(loanHomevisitInvestigateOrderDetailsVo.getFinConfirm()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setFinConfirm(loanHomevisitInvestigateOrderDetailsVo.getFinConfirm()); |
|
@ -2139,14 +2163,14 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
} |
|
|
} |
|
|
//营运经历
|
|
|
//营运经历
|
|
|
LoanHomevisitInvestigateOperationsDetailsVo loanHomevisitInvestigateOperationsDetailsVo = loanHomevisitInvestigateOperationsService.selByMainSid(sid); |
|
|
LoanHomevisitInvestigateOperationsDetailsVo loanHomevisitInvestigateOperationsDetailsVo = loanHomevisitInvestigateOperationsService.selByMainSid(sid); |
|
|
if (loanHomevisitInvestigateOperationsDetailsVo != null){ |
|
|
if (loanHomevisitInvestigateOperationsDetailsVo != null) { |
|
|
loanHomevisitInvestigateDetailsPCVo.setIndustryYears(loanHomevisitInvestigateOperationsDetailsVo.getIndustryYears()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setIndustryYears(loanHomevisitInvestigateOperationsDetailsVo.getIndustryYears()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setDriveProTypeValue(loanHomevisitInvestigateOperationsDetailsVo.getDriveProTypeValue()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setDriveProTypeValue(loanHomevisitInvestigateOperationsDetailsVo.getDriveProTypeValue()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setBeforeOpeTypeValue(loanHomevisitInvestigateOperationsDetailsVo.getBeforeOpeTypeValue()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setBeforeOpeTypeValue(loanHomevisitInvestigateOperationsDetailsVo.getBeforeOpeTypeValue()); |
|
|
} |
|
|
} |
|
|
//运输信息
|
|
|
//运输信息
|
|
|
LoanHomevisitInvestigateTransportDetailsVo loanHomevisitInvestigateTransportDetailsVo = loanHomevisitInvestigateTransportService.selByMainSid(sid); |
|
|
LoanHomevisitInvestigateTransportDetailsVo loanHomevisitInvestigateTransportDetailsVo = loanHomevisitInvestigateTransportService.selByMainSid(sid); |
|
|
if (loanHomevisitInvestigateTransportDetailsVo != null){ |
|
|
if (loanHomevisitInvestigateTransportDetailsVo != null) { |
|
|
loanHomevisitInvestigateDetailsPCVo.setTransportRoute(loanHomevisitInvestigateTransportDetailsVo.getTransportRoute()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setTransportRoute(loanHomevisitInvestigateTransportDetailsVo.getTransportRoute()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setTransportTypeValue(loanHomevisitInvestigateTransportDetailsVo.getTransportTypeValue()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setTransportTypeValue(loanHomevisitInvestigateTransportDetailsVo.getTransportTypeValue()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setTransportGoodsTrip(loanHomevisitInvestigateTransportDetailsVo.getTransportGoodsTrip()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setTransportGoodsTrip(loanHomevisitInvestigateTransportDetailsVo.getTransportGoodsTrip()); |
|
@ -2164,7 +2188,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
} |
|
|
} |
|
|
//资产情况
|
|
|
//资产情况
|
|
|
LoanHomevisitInvestigatePropertyDetailsVo loanHomevisitInvestigatePropertyDetailsVo = loanHomevisitInvestigatePropertyService.selByMainSid(sid); |
|
|
LoanHomevisitInvestigatePropertyDetailsVo loanHomevisitInvestigatePropertyDetailsVo = loanHomevisitInvestigatePropertyService.selByMainSid(sid); |
|
|
if (loanHomevisitInvestigatePropertyDetailsVo != null){ |
|
|
if (loanHomevisitInvestigatePropertyDetailsVo != null) { |
|
|
loanHomevisitInvestigateDetailsPCVo.setIsRealEstate(loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setIsRealEstate(loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setPropertyType(loanHomevisitInvestigatePropertyDetailsVo.getPropertyType()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setPropertyType(loanHomevisitInvestigatePropertyDetailsVo.getPropertyType()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setRealLoanSituation(loanHomevisitInvestigatePropertyDetailsVo.getRealLoanSituation()); |
|
|
loanHomevisitInvestigateDetailsPCVo.setRealLoanSituation(loanHomevisitInvestigatePropertyDetailsVo.getRealLoanSituation()); |
|
@ -2181,13 +2205,13 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
|
|
|
|
|
public ResultBean<String> selIsCompanyBuy(String orderSid, String borrowerSid) { |
|
|
public ResultBean<String> selIsCompanyBuy(String orderSid, String borrowerSid) { |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
String isKp = baseMapper.selIsCompanyBuy(orderSid,borrowerSid); |
|
|
String isKp = baseMapper.selIsCompanyBuy(orderSid, borrowerSid); |
|
|
return rb.success().setData(isKp); |
|
|
return rb.success().setData(isKp); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ResultBean<String> selSaleOrderSidAndBorrSid(String orderSid, String borrowerSid) { |
|
|
public ResultBean<String> selSaleOrderSidAndBorrSid(String orderSid, String borrowerSid) { |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
String sid = baseMapper.selSaleOrderSidAndBorrSid(orderSid,borrowerSid); |
|
|
String sid = baseMapper.selSaleOrderSidAndBorrSid(orderSid, borrowerSid); |
|
|
return rb.success().setData(sid); |
|
|
return rb.success().setData(sid); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|