|
@ -52,6 +52,8 @@ import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoanco |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractDetailsVo; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractDetailsVo; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractDto; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractDto; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractFeign; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractFeign; |
|
|
|
|
|
import com.yxt.anrui.buscenter.api.bussalesordermakeup.BusSalesOrderMakeupDetailsVo; |
|
|
|
|
|
import com.yxt.anrui.buscenter.api.bussalesordermakeup.BusSalesOrderMakeupFeign; |
|
|
import com.yxt.anrui.buscenter.api.bussalesordermodel.BusSalesOrderModel; |
|
|
import com.yxt.anrui.buscenter.api.bussalesordermodel.BusSalesOrderModel; |
|
|
import com.yxt.anrui.buscenter.api.bussalesordermodel.BusSalesOrderModelFeign; |
|
|
import com.yxt.anrui.buscenter.api.bussalesordermodel.BusSalesOrderModelFeign; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.BusSalesOrderPrice; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.BusSalesOrderPrice; |
|
@ -137,6 +139,8 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
@Autowired |
|
|
@Autowired |
|
|
private BusSalesOrderFeign busSalesOrderFeign; |
|
|
private BusSalesOrderFeign busSalesOrderFeign; |
|
|
@Autowired |
|
|
@Autowired |
|
|
|
|
|
private BusSalesOrderMakeupFeign busSalesOrderMakeupFeign; |
|
|
|
|
|
@Autowired |
|
|
private BusSalesOrderVehicleFeign busSalesOrderVehicleFeign; |
|
|
private BusSalesOrderVehicleFeign busSalesOrderVehicleFeign; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private BusSalesOrderLoancontractFeign busSalesOrderLoancontractFeign; |
|
|
private BusSalesOrderLoancontractFeign busSalesOrderLoancontractFeign; |
|
@ -455,13 +459,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
FinBillApplicationDetailsVo finBillApplicationDetailsVo = finBillApplicationFeign.selectByCon(printConfirmDto.getContractNo()).getData(); |
|
|
FinBillApplicationDetailsVo finBillApplicationDetailsVo = finBillApplicationFeign.selectByCon(printConfirmDto.getContractNo()).getData(); |
|
|
//判断是否为高低开,若是则生成开票申请书
|
|
|
//判断是否为高低开,若是则生成开票申请书
|
|
|
List<String> kpsqsUrls = new ArrayList<>(); |
|
|
List<String> kpsqsUrls = new ArrayList<>(); |
|
|
if (!data.getSingleFinalPrice().equals(finBillApplicationDetailsVo.getOneBillMoney())){ |
|
|
if (!data.getSingleFinalPrice().equals(finBillApplicationDetailsVo.getOneBillMoney())) { |
|
|
//开票申请书
|
|
|
//开票申请书
|
|
|
kpsqsUrls = kpsqs(printConfirmDto, conSetUpKey); |
|
|
kpsqsUrls = kpsqs(printConfirmDto, conSetUpKey); |
|
|
} |
|
|
} |
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
List<String> cldjhtUrls = new ArrayList<>(); |
|
|
List<String> cldjhtUrls = new ArrayList<>(); |
|
|
if ("2".equals(homeKcCust.getVehRegis())){ |
|
|
if ("2".equals(homeKcCust.getVehRegis())) { |
|
|
//生成车辆登记合同
|
|
|
//生成车辆登记合同
|
|
|
cldjhtUrls = cldjContract(printConfirmDto, conSetUpKey); |
|
|
cldjhtUrls = cldjContract(printConfirmDto, conSetUpKey); |
|
|
} |
|
|
} |
|
@ -469,10 +473,17 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
List<String> jsclqrsUrls = jsclqrs(printConfirmDto, conSetUpKey); |
|
|
List<String> jsclqrsUrls = jsclqrs(printConfirmDto, conSetUpKey); |
|
|
//接收车辆委托书
|
|
|
//接收车辆委托书
|
|
|
List<String> jsclwtsUrls = jsclwts(printConfirmDto, conSetUpKey); |
|
|
List<String> jsclwtsUrls = jsclwts(printConfirmDto, conSetUpKey); |
|
|
//生成车辆及上装采购合同
|
|
|
//销售订单上装信息
|
|
|
List<String> cljszcghtUrls = cljszcght(printConfirmDto, conSetUpKey); |
|
|
List<BusSalesOrderMakeupDetailsVo> busSalesOrderMakeupDetailsVoList = busSalesOrderMakeupFeign.selectTopByOrderSid(busSalesOrder.getSid()).getData(); |
|
|
|
|
|
//查询金融方案中挂车信息
|
|
|
|
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(busSalesOrder.getSid()).getData(); |
|
|
|
|
|
List<String> cljszcghtUrls = new ArrayList<>(); |
|
|
|
|
|
if ((busSalesOrderMakeupDetailsVoList != null && busSalesOrderMakeupDetailsVoList.size() > 0) || solutionsDetailsVo.isTrailerAmountCb()){ |
|
|
|
|
|
//生成车辆及上装采购合同
|
|
|
|
|
|
cljszcghtUrls = cljszcght(printConfirmDto, conSetUpKey); |
|
|
|
|
|
} |
|
|
List<String> gsgddwdbjyUrls = new ArrayList<>(); |
|
|
List<String> gsgddwdbjyUrls = new ArrayList<>(); |
|
|
if ("0".equals(homeKcCust.getIsSecurity())){ |
|
|
if ("0".equals(homeKcCust.getIsSecurity())) { |
|
|
//生成公司股东会对外担保决议
|
|
|
//生成公司股东会对外担保决议
|
|
|
gsgddwdbjyUrls = gsgddwdbjy(printConfirmDto, conSetUpKey); |
|
|
gsgddwdbjyUrls = gsgddwdbjy(printConfirmDto, conSetUpKey); |
|
|
} |
|
|
} |
|
@ -715,7 +726,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
for (SalesOrderVehicle salesOrderVehicle : salesOrderVehicles) { |
|
|
for (SalesOrderVehicle salesOrderVehicle : salesOrderVehicles) { |
|
|
DownCarRegisContract downCarRegisContract = new DownCarRegisContract(); |
|
|
DownCarRegisContract downCarRegisContract = new DownCarRegisContract(); |
|
|
downCarRegisContract.setId(i.toString()); |
|
|
downCarRegisContract.setId(i.toString()); |
|
|
i= i + 1; |
|
|
i = i + 1; |
|
|
BaseVehicle baseVehicle = baseVehicleFeign.fetchBySid(salesOrderVehicle.getLinkSid()).getData(); |
|
|
BaseVehicle baseVehicle = baseVehicleFeign.fetchBySid(salesOrderVehicle.getLinkSid()).getData(); |
|
|
downCarRegisContract.setVinNo(baseVehicle.getVinNo()); |
|
|
downCarRegisContract.setVinNo(baseVehicle.getVinNo()); |
|
|
downCarRegisContract.setFdjNo(baseVehicle.getEngineNo()); |
|
|
downCarRegisContract.setFdjNo(baseVehicle.getEngineNo()); |
|
@ -759,7 +770,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//分公司(甲方)
|
|
|
//分公司(甲方)
|
|
|
map.put("jf", homeKcCust.getAccCompName()); |
|
|
map.put("jf", homeKcCust.getAccCompName()); |
|
|
//乙方
|
|
|
//乙方
|
|
|
map.put("partyB", salesOrderVehicles.get(0).getBorrowName()); |
|
|
map.put("yf", salesOrderVehicles.get(0).getBorrowName()); |
|
|
//签订日期
|
|
|
//签订日期
|
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
//车辆出售方
|
|
|
//车辆出售方
|
|
@ -847,8 +858,15 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
FinCompanyInvoicingDetailsVo finCompanyInvoicingDetailsVo = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(busSalesOrder.getUseOrgSid(), busSalesOrder.getPurchaseSystemSid()).getData(); |
|
|
FinCompanyInvoicingDetailsVo finCompanyInvoicingDetailsVo = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(busSalesOrder.getUseOrgSid(), busSalesOrder.getPurchaseSystemSid()).getData(); |
|
|
//分公司(甲方)
|
|
|
//分公司(甲方)
|
|
|
map.put("jf", finCompanyInvoicingDetailsVo.getName()); |
|
|
map.put("jf", finCompanyInvoicingDetailsVo.getName()); |
|
|
//车辆落户单位
|
|
|
//获取合同补充信息
|
|
|
map.put("lhdw", DateUtil.formatDate(new Date())); |
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
|
|
|
if ("1".equals(homeKcCust.getVehRegis())) { |
|
|
|
|
|
//车辆落户单位
|
|
|
|
|
|
map.put("lhdw", salesOrderVehicles.get(0).getBorrowName()); |
|
|
|
|
|
} else if ("2".equals(homeKcCust.getVehRegis())) { |
|
|
|
|
|
//车辆落户单位
|
|
|
|
|
|
map.put("lhdw", homeKcCust.getAccCompName()); |
|
|
|
|
|
} |
|
|
//申请人
|
|
|
//申请人
|
|
|
map.put("sqr", ""); |
|
|
map.put("sqr", ""); |
|
|
//年
|
|
|
//年
|
|
@ -875,7 +893,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
downInvoAppForm.setFplx("机动车统一销售发票"); |
|
|
downInvoAppForm.setFplx("机动车统一销售发票"); |
|
|
downInvoAppForms.add(downInvoAppForm); |
|
|
downInvoAppForms.add(downInvoAppForm); |
|
|
List<BaseTrailer> baseTrailers = baseTrailerFeign.getByVehSid(salesOrderVehicle.getLinkSid()).getData(); |
|
|
List<BaseTrailer> baseTrailers = baseTrailerFeign.getByVehSid(salesOrderVehicle.getLinkSid()).getData(); |
|
|
if (baseTrailers != null && baseTrailers.size() > 0){ |
|
|
if (baseTrailers != null && baseTrailers.size() > 0) { |
|
|
for (BaseTrailer baseTrailer : baseTrailers) { |
|
|
for (BaseTrailer baseTrailer : baseTrailers) { |
|
|
DownInvoAppForm downInvoAppForm1 = new DownInvoAppForm(); |
|
|
DownInvoAppForm downInvoAppForm1 = new DownInvoAppForm(); |
|
|
downInvoAppForm1.setId(i.toString()); |
|
|
downInvoAppForm1.setId(i.toString()); |
|
@ -889,7 +907,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
downInvoAppForms.add(downInvoAppForm1); |
|
|
downInvoAppForms.add(downInvoAppForm1); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
map.put("list",downInvoAppForms); |
|
|
map.put("list", downInvoAppForms); |
|
|
//获取消贷合同信息
|
|
|
//获取消贷合同信息
|
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicle.getLoanContractSid()).getData(); |
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicle.getLoanContractSid()).getData(); |
|
|
//消贷合同编号
|
|
|
//消贷合同编号
|
|
@ -927,7 +945,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
downInvoAppForms.add(downInvoAppForm); |
|
|
downInvoAppForms.add(downInvoAppForm); |
|
|
for (SalesOrderVehicle salesOrderVehicle : salesOrderVehicles) { |
|
|
for (SalesOrderVehicle salesOrderVehicle : salesOrderVehicles) { |
|
|
List<BaseTrailer> baseTrailers = baseTrailerFeign.getByVehSid(salesOrderVehicle.getLinkSid()).getData(); |
|
|
List<BaseTrailer> baseTrailers = baseTrailerFeign.getByVehSid(salesOrderVehicle.getLinkSid()).getData(); |
|
|
if (baseTrailers != null && baseTrailers.size() > 0){ |
|
|
if (baseTrailers != null && baseTrailers.size() > 0) { |
|
|
for (BaseTrailer baseTrailer : baseTrailers) { |
|
|
for (BaseTrailer baseTrailer : baseTrailers) { |
|
|
DownInvoAppForm downInvoAppForm1 = new DownInvoAppForm(); |
|
|
DownInvoAppForm downInvoAppForm1 = new DownInvoAppForm(); |
|
|
downInvoAppForm1.setId(i.toString()); |
|
|
downInvoAppForm1.setId(i.toString()); |
|
@ -942,7 +960,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
map.put("list",downInvoAppForms); |
|
|
map.put("list", downInvoAppForms); |
|
|
//获取消贷合同信息
|
|
|
//获取消贷合同信息
|
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicles.get(0).getLoanContractSid()).getData(); |
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicles.get(0).getLoanContractSid()).getData(); |
|
|
//消贷合同编号
|
|
|
//消贷合同编号
|
|
@ -1021,13 +1039,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicles.get(0).getLoanContractSid()).getData(); |
|
|
BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo = busSalesOrderLoancontractFeign.fetchDetailsBySid(salesOrderVehicles.get(0).getLoanContractSid()).getData(); |
|
|
//还款协议编号
|
|
|
//还款协议编号
|
|
|
map.put("num", "H" + busSalesOrderLoancontractDetailsVo.getLoanContractNo()); |
|
|
map.put("num", "H" + busSalesOrderLoancontractDetailsVo.getLoanContractNo()); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "dgclwts" + ".ftl"); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "dgclsqwts" + ".ftl"); |
|
|
//生成word文件名
|
|
|
//生成word文件名
|
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
String dateStr = DateUtil.format(new Date(), "yyyyMMdd"); |
|
|
String dateStr = DateUtil.format(new Date(), "yyyyMMdd"); |
|
|
long seconds = System.currentTimeMillis(); |
|
|
long seconds = System.currentTimeMillis(); |
|
|
String typeName = dateStr + seconds + ".doc"; |
|
|
String typeName = dateStr + seconds + ".doc"; |
|
|
File file = new File(targetPath + "dgclwts" + seconds + ".ftl"); |
|
|
File file = new File(targetPath + "dgclsqwts" + seconds + ".ftl"); |
|
|
File dir = new File(targetPath); |
|
|
File dir = new File(targetPath); |
|
|
WordConvertUtils.inputStreamToFile(inputStream, file); |
|
|
WordConvertUtils.inputStreamToFile(inputStream, file); |
|
|
WordConvertUtils.creatWord1(map, file, targetPath, typeName, dir); |
|
|
WordConvertUtils.creatWord1(map, file, targetPath, typeName, dir); |
|
@ -1061,7 +1079,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//签订日期
|
|
|
//签订日期
|
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
//签订地点
|
|
|
//签订地点
|
|
|
map.put("qdAddress", finCompanyInvoicingDetailsVo.getAddress()); |
|
|
boolean q = finCompanyInvoicingDetailsVo.getAddress().contains("区"); |
|
|
|
|
|
boolean x = finCompanyInvoicingDetailsVo.getAddress().contains("县"); |
|
|
|
|
|
if (q) { |
|
|
|
|
|
map.put("qdAddress", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("区") + 1)); |
|
|
|
|
|
} else if (x) { |
|
|
|
|
|
map.put("qdAddress", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("县") + 1)); |
|
|
|
|
|
} |
|
|
//获取销售订单车型信息
|
|
|
//获取销售订单车型信息
|
|
|
BusSalesOrderModel busSalesOrderModel = busSalesOrderModelFeign.fetchByOrderSid(busSalesOrder.getSid()).getData(); |
|
|
BusSalesOrderModel busSalesOrderModel = busSalesOrderModelFeign.fetchByOrderSid(busSalesOrder.getSid()).getData(); |
|
|
//品牌名称
|
|
|
//品牌名称
|
|
@ -1086,13 +1110,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
map.put("moneyTotalDx", dx); |
|
|
map.put("moneyTotalDx", dx); |
|
|
//3日内向甲方支付
|
|
|
//3日内向甲方支付
|
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(busSalesOrder.getSid()).getData(); |
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(busSalesOrder.getSid()).getData(); |
|
|
String replace = solutionsDetailsVo.getDownPayRatio().replace("%", ""); |
|
|
String replace = solutionsDetailsVo.getDownPayAmountsRatio().replace("%", ""); |
|
|
double downPayRatio = Double.parseDouble(replace) / 100; |
|
|
double downPayRatio = Double.parseDouble(replace) / 100; |
|
|
double zf = money * downPayRatio; |
|
|
double zf = money * downPayRatio; |
|
|
map.put("zf", zf); |
|
|
map.put("zf", String.valueOf(zf)); |
|
|
//剩余xxx元
|
|
|
//剩余xxx元
|
|
|
double sy = money - zf; |
|
|
double sy = money - zf; |
|
|
map.put("sy", sy); |
|
|
map.put("sy", String.valueOf(sy)); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "clmmht" + ".ftl"); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "clmmht" + ".ftl"); |
|
|
//生成word文件名
|
|
|
//生成word文件名
|
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
@ -1121,19 +1145,19 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
double num = salesOrderVehicles.size(); |
|
|
double num = salesOrderVehicles.size(); |
|
|
double money = Double.parseDouble(singleFinalPrice); |
|
|
double money = Double.parseDouble(singleFinalPrice); |
|
|
double moneyTotal = num * money; |
|
|
double moneyTotal = num * money; |
|
|
map.put("moneyTotal", moneyTotal); |
|
|
map.put("moneyTotal", String.valueOf(moneyTotal)); |
|
|
//总价款大写
|
|
|
//总价款大写
|
|
|
String dx = TransformMoney.transform(String.valueOf(moneyTotal)); |
|
|
String dx = TransformMoney.transform(String.valueOf(moneyTotal)); |
|
|
map.put("moneyTotalDx", dx); |
|
|
map.put("moneyTotalDx", dx); |
|
|
//3日内向甲方支付
|
|
|
//3日内向甲方支付
|
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(busSalesOrder.getSid()).getData(); |
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(busSalesOrder.getSid()).getData(); |
|
|
String replace = solutionsDetailsVo.getDownPayRatio().replace("%", ""); |
|
|
String replace = solutionsDetailsVo.getDownPayAmountsRatio().replace("%", ""); |
|
|
double downPayRatio = Double.parseDouble(replace) / 100; |
|
|
double downPayRatio = Double.parseDouble(replace) / 100; |
|
|
double zf = moneyTotal * downPayRatio; |
|
|
double zf = moneyTotal * downPayRatio; |
|
|
map.put("zf", zf); |
|
|
map.put("zf", String.valueOf(zf)); |
|
|
//剩余xxx元
|
|
|
//剩余xxx元
|
|
|
double sy = moneyTotal - zf; |
|
|
double sy = moneyTotal - zf; |
|
|
map.put("sy", sy); |
|
|
map.put("sy", String.valueOf(sy)); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "clmmht" + ".ftl"); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "clmmht" + ".ftl"); |
|
|
//生成word文件名
|
|
|
//生成word文件名
|
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
@ -1174,7 +1198,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//签订日期
|
|
|
//签订日期
|
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
//签订地点
|
|
|
//签订地点
|
|
|
map.put("qdAddress", finCompanyInvoicingDetailsVo.getAddress()); |
|
|
boolean q = finCompanyInvoicingDetailsVo.getAddress().contains("区"); |
|
|
|
|
|
boolean x = finCompanyInvoicingDetailsVo.getAddress().contains("县"); |
|
|
|
|
|
if (q) { |
|
|
|
|
|
map.put("qdAddress", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("区") + 1)); |
|
|
|
|
|
} else if (x) { |
|
|
|
|
|
map.put("qdAddress", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("县") + 1)); |
|
|
|
|
|
} |
|
|
//资金提供方
|
|
|
//资金提供方
|
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(printConfirmDto.getBusSid()).getData(); |
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(printConfirmDto.getBusSid()).getData(); |
|
|
if (StringUtils.isBlank(solutionsDetailsVo.getPolicySid())) { |
|
|
if (StringUtils.isBlank(solutionsDetailsVo.getPolicySid())) { |
|
@ -1212,7 +1242,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
map.put("pj", "□"); |
|
|
map.put("pj", "□"); |
|
|
} |
|
|
} |
|
|
//融资金额
|
|
|
//融资金额
|
|
|
map.put("downPayMoney", solutionsDetailsVo.getLoanTotal()); |
|
|
map.put("downPayMoney", solutionsDetailsVo.getLoanAmountTotal()); |
|
|
//保证金款项
|
|
|
//保证金款项
|
|
|
map.put("bondAmounts", solutionsDetailsVo.getBondAmounts()); |
|
|
map.put("bondAmounts", solutionsDetailsVo.getBondAmounts()); |
|
|
//车辆落户保证金
|
|
|
//车辆落户保证金
|
|
@ -1296,8 +1326,15 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
FinCompanyInvoicingDetailsVo finCompanyInvoicingDetailsVo = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(busSalesOrder.getUseOrgSid(), busSalesOrder.getPurchaseSystemSid()).getData(); |
|
|
FinCompanyInvoicingDetailsVo finCompanyInvoicingDetailsVo = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(busSalesOrder.getUseOrgSid(), busSalesOrder.getPurchaseSystemSid()).getData(); |
|
|
//签订日期
|
|
|
//签订日期
|
|
|
map.put("date", DateUtil.formatDate(new Date())); |
|
|
map.put("date", DateUtil.formatDate(new Date())); |
|
|
//签订地点
|
|
|
boolean q = finCompanyInvoicingDetailsVo.getAddress().contains("区"); |
|
|
map.put("address", finCompanyInvoicingDetailsVo.getAddress()); |
|
|
boolean x = finCompanyInvoicingDetailsVo.getAddress().contains("县"); |
|
|
|
|
|
if (q) { |
|
|
|
|
|
//签订地点
|
|
|
|
|
|
map.put("address", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("区") + 1)); |
|
|
|
|
|
} else if (x) { |
|
|
|
|
|
//签订地点
|
|
|
|
|
|
map.put("address", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("县") + 1)); |
|
|
|
|
|
} |
|
|
//甲方
|
|
|
//甲方
|
|
|
map.put("partyA", finCompanyInvoicingDetailsVo.getName()); |
|
|
map.put("partyA", finCompanyInvoicingDetailsVo.getName()); |
|
|
//甲方统一社会信用代码
|
|
|
//甲方统一社会信用代码
|
|
@ -1325,7 +1362,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//丙方身份证号
|
|
|
//丙方身份证号
|
|
|
map.put("parCidNo", homeKcCust.getSpouseIdCard()); |
|
|
map.put("parCidNo", homeKcCust.getSpouseIdCard()); |
|
|
//丙方电话
|
|
|
//丙方电话
|
|
|
map.put("parCphone", homeKcCust.getSpouseMobile()); |
|
|
map.put("bfPh", homeKcCust.getSpouseMobile()); |
|
|
//丙方户籍地址
|
|
|
//丙方户籍地址
|
|
|
map.put("parCaddress", homeKcCust.getSpouseRegisterAddress()); |
|
|
map.put("parCaddress", homeKcCust.getSpouseRegisterAddress()); |
|
|
//丙方实际居住地址
|
|
|
//丙方实际居住地址
|
|
@ -1337,7 +1374,7 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//丁方负责人
|
|
|
//丁方负责人
|
|
|
map.put("partyDfzr", homeKcCust.getAccCompContract()); |
|
|
map.put("partyDfzr", homeKcCust.getAccCompContract()); |
|
|
//丁方电话
|
|
|
//丁方电话
|
|
|
map.put("partyDphone", homeKcCust.getAccComphone()); |
|
|
map.put("dfPh", homeKcCust.getAccComphone()); |
|
|
//丁方注册地址
|
|
|
//丁方注册地址
|
|
|
map.put("partyDaddress", homeKcCust.getAccCompAddress()); |
|
|
map.put("partyDaddress", homeKcCust.getAccCompAddress()); |
|
|
//丁方实际经营地址
|
|
|
//丁方实际经营地址
|
|
@ -1349,9 +1386,9 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//戊方
|
|
|
//戊方
|
|
|
map.put("partyE", homeKcOtherPeo.getName()); |
|
|
map.put("partyE", homeKcOtherPeo.getName()); |
|
|
//戊方身份证号
|
|
|
//戊方身份证号
|
|
|
map.put("partyEidNo", homeKcOtherPeo.getIdCard()); |
|
|
map.put("parEidNo", homeKcOtherPeo.getIdCard()); |
|
|
//戊方电话
|
|
|
//戊方电话
|
|
|
map.put("partyEphone", homeKcOtherPeo.getMobile()); |
|
|
map.put("mfPh", homeKcOtherPeo.getMobile()); |
|
|
//戊方户籍地址
|
|
|
//戊方户籍地址
|
|
|
map.put("partyEaddress", homeKcOtherPeo.getResidentAddress()); |
|
|
map.put("partyEaddress", homeKcOtherPeo.getResidentAddress()); |
|
|
//戊方实际居住地址
|
|
|
//戊方实际居住地址
|
|
@ -1365,9 +1402,9 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//己方
|
|
|
//己方
|
|
|
map.put("partyF", homeKcOtherPeo.getName()); |
|
|
map.put("partyF", homeKcOtherPeo.getName()); |
|
|
//己方身份证号
|
|
|
//己方身份证号
|
|
|
map.put("partyFidNo", homeKcOtherPeo.getIdCard()); |
|
|
map.put("parFidNo", homeKcOtherPeo.getIdCard()); |
|
|
//己方电话
|
|
|
//己方电话
|
|
|
map.put("partyFphone", homeKcOtherPeo.getMobile()); |
|
|
map.put("jfPh", homeKcOtherPeo.getMobile()); |
|
|
//己方户籍地址
|
|
|
//己方户籍地址
|
|
|
map.put("partyFaddress", homeKcOtherPeo.getResidentAddress()); |
|
|
map.put("partyFaddress", homeKcOtherPeo.getResidentAddress()); |
|
|
//己方实际居住地址
|
|
|
//己方实际居住地址
|
|
@ -1485,15 +1522,21 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//签订时间
|
|
|
//签订时间
|
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
//签订地点
|
|
|
//签订地点
|
|
|
map.put("qddd", finCompanyInvoicingDetailsVo.getAddress()); |
|
|
boolean q = finCompanyInvoicingDetailsVo.getAddress().contains("区"); |
|
|
|
|
|
boolean x = finCompanyInvoicingDetailsVo.getAddress().contains("县"); |
|
|
|
|
|
if (q) { |
|
|
|
|
|
map.put("qddd", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("区") + 1)); |
|
|
|
|
|
} else if (x) { |
|
|
|
|
|
map.put("qddd", finCompanyInvoicingDetailsVo.getAddress().substring(0, finCompanyInvoicingDetailsVo.getAddress().indexOf("县") + 1)); |
|
|
|
|
|
} |
|
|
//合同补充信息
|
|
|
//合同补充信息
|
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
if ("0".equals(homeKcCust.getIsCompBuy())){ |
|
|
if ("0".equals(homeKcCust.getIsCompBuy())) { |
|
|
//第一种
|
|
|
//第一种
|
|
|
map.put("dyz", "☑"); |
|
|
map.put("dyz", "☑"); |
|
|
//第二种
|
|
|
//第二种
|
|
|
map.put("dez", "□"); |
|
|
map.put("dez", "□"); |
|
|
}else if ("1".equals(homeKcCust.getIsCompBuy())){ |
|
|
} else if ("1".equals(homeKcCust.getIsCompBuy())) { |
|
|
//第一种
|
|
|
//第一种
|
|
|
map.put("dyz", "□"); |
|
|
map.put("dyz", "□"); |
|
|
//第二种
|
|
|
//第二种
|
|
@ -1503,11 +1546,13 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
ResultBean<AppOrderDetailsVo> resultBean = busSalesOrderFeign.getSaleOrderDetails(printConfirmDto.getBusSid()); |
|
|
ResultBean<AppOrderDetailsVo> resultBean = busSalesOrderFeign.getSaleOrderDetails(printConfirmDto.getBusSid()); |
|
|
AppOrderDetailsVo appOrderDetailsVo = resultBean.getData(); |
|
|
AppOrderDetailsVo appOrderDetailsVo = resultBean.getData(); |
|
|
AppOrderTopInfoVo topInfo = appOrderDetailsVo.getTopInfo(); |
|
|
AppOrderTopInfoVo topInfo = appOrderDetailsVo.getTopInfo(); |
|
|
//上装成交价
|
|
|
//查询金融方案挂车信息
|
|
|
|
|
|
SolutionsDetailsVo solutionsDetailsVo = loanSolutionsService.selectDetails(printConfirmDto.getBusSid()).getData(); |
|
|
|
|
|
//上装成交价/挂车成交价
|
|
|
if (topInfo != null) { |
|
|
if (topInfo != null) { |
|
|
map.put("price", topInfo.getTopPrice()); |
|
|
map.put("je", topInfo.getTopPrice()); |
|
|
} else { |
|
|
}else if (solutionsDetailsVo.isTrailerAmountCb()){ |
|
|
map.put("price", ""); |
|
|
map.put("je", solutionsDetailsVo.getTrailerAmount()); |
|
|
} |
|
|
} |
|
|
List<String> urls = new ArrayList<>(); |
|
|
List<String> urls = new ArrayList<>(); |
|
|
if ("001".equals(conSetUpKey)) { |
|
|
if ("001".equals(conSetUpKey)) { |
|
@ -1566,11 +1611,11 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
List<SalesOrderVehicle> salesOrderVehicles = printConfirmDto.getSalesOrderVehicles(); |
|
|
List<SalesOrderVehicle> salesOrderVehicles = printConfirmDto.getSalesOrderVehicles(); |
|
|
//时间
|
|
|
//时间
|
|
|
map.put("qdDate",DateUtil.formatDate(new Date())); |
|
|
map.put("qdDate", DateUtil.formatDate(new Date())); |
|
|
//合同补充信息
|
|
|
//合同补充信息
|
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
HomeKcCust homeKcCust = printConfirmDto.getHomeKcCust(); |
|
|
//地点
|
|
|
//地点
|
|
|
map.put("qddd",homeKcCust.getAccCompName()); |
|
|
map.put("qddd", homeKcCust.getAccCompName()); |
|
|
//获取销售订单信息
|
|
|
//获取销售订单信息
|
|
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.selectOrderByContractNo(printConfirmDto.getContractNo()).getData(); |
|
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.selectOrderByContractNo(printConfirmDto.getContractNo()).getData(); |
|
|
//获取采购系统、分公司对应的开票信息
|
|
|
//获取采购系统、分公司对应的开票信息
|
|
@ -1580,9 +1625,9 @@ public class LoanHomevisitPrepService extends MybatisBaseService<LoanHomevisitPr |
|
|
//乙方
|
|
|
//乙方
|
|
|
map.put("yf", salesOrderVehicles.get(0).getBorrowName()); |
|
|
map.put("yf", salesOrderVehicles.get(0).getBorrowName()); |
|
|
//股东人数1
|
|
|
//股东人数1
|
|
|
map.put("gdrs1",homeKcCust.getShareNum()); |
|
|
map.put("gdrs1", homeKcCust.getShareNum()); |
|
|
//股东人数2
|
|
|
//股东人数2
|
|
|
map.put("gdrs2",homeKcCust.getShareNum()); |
|
|
map.put("gdrs2", homeKcCust.getShareNum()); |
|
|
//年
|
|
|
//年
|
|
|
map.put("y", DateUtil.year(new Date())); |
|
|
map.put("y", DateUtil.year(new Date())); |
|
|
//月
|
|
|
//月
|
|
|