|
|
@ -379,8 +379,9 @@ public class BusSalesOrderLoancontractService extends MybatisBaseService<BusSale |
|
|
|
BasePurchaseSystemDetailsVo data = basePurchaseSystemFeign.fetchDetailsByDeptSid(salesOrder.getPurchaseSystemSid()).getData(); |
|
|
|
bdCustomer.setTOrgIds(data.getOrgCode()); |
|
|
|
if (StringUtils.isNotBlank(busSalesOrderVehicle.getLinkNo())) { |
|
|
|
if (busSalesOrderVehicle.getLinkNo().length() > 8) { |
|
|
|
linkNo = busSalesOrderVehicle.getLinkNo().substring(linkNo.length() - 8); |
|
|
|
String vinNo = busSalesOrderVehicle.getLinkNo(); |
|
|
|
if (vinNo.length() > 8) { |
|
|
|
linkNo = vinNo.substring(vinNo.length() - 8); |
|
|
|
} else { |
|
|
|
linkNo = busSalesOrderVehicle.getLinkNo(); |
|
|
|
} |
|
|
@ -396,13 +397,6 @@ public class BusSalesOrderLoancontractService extends MybatisBaseService<BusSale |
|
|
|
} else { |
|
|
|
customerNumber = busSalesOrderVehicle.getTemporaryNo(); |
|
|
|
} |
|
|
|
String loanContractSid = busSalesOrderVehicle.getLoanContractSid(); |
|
|
|
if (StringUtils.isNotBlank(loanContractSid)) { |
|
|
|
BusSalesOrderLoancontract loancontract = fetchBySid(loanContractSid); |
|
|
|
if (null != loancontract) { |
|
|
|
creditResult.setBillNo(loancontract.getLoanContractNo() + linkNo); |
|
|
|
} |
|
|
|
} |
|
|
|
creditResult.setCommUnit(customerNumber); |
|
|
|
SysOrganizationVo sysOrganizationVo1 = sysOrganizationFeign.fetchBySid(salesOrder.getUseOrgSid()).getData(); |
|
|
|
creditResult.setCollectionOrg(sysOrganizationVo1.getOrgCode()); |
|
|
|