Browse Source

优化

master
God 2 years ago
parent
commit
f906158b40
  1. 102
      anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/basevehicleout/BaseJRFAVo.java
  2. 26
      anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/basevehicleout/BaseSolutionListVo.java
  3. 1
      anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/basevehicleout/BaseVehicleOutFeign.java
  4. 226
      anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicleout/BaseVehicleOutService.java
  5. 2
      anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontract.java

102
anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/basevehicleout/BaseJRFAVo.java

@ -1,51 +1,81 @@
package com.yxt.anrui.base.api.basevehicleout; package com.yxt.anrui.base.api.basevehicleout;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data @Data
public class BaseJRFAVo { public class BaseJRFAVo {
@ApiModelProperty("融资项目")
private String financProject;
@ApiModelProperty("是否显示更多")
@JsonProperty("isShowMore")
private boolean isShowMore;
//金融方案 @ApiModelProperty("关联sid")
@ApiModelProperty("是否打包") private String busSid;
@ApiModelProperty("是否打包:1打包,0不打包")
private String isPack; private String isPack;
@ApiModelProperty("产品政策") @ApiModelProperty("产品政策名称")
private String policyName; private String policyName;
@ApiModelProperty("融资项目") @ApiModelProperty("产品政策sid")
private String financProject; private String policySid;
@ApiModelProperty("融资项目总额") @ApiModelProperty("融资项目总额")
private String loanTotal; private String loanTotal;
@ApiModelProperty("首付比例") @ApiModelProperty("主车发票价")
private String mainVehicleAmount;
@ApiModelProperty("配件")
private String accessoriesAmount;
@ApiModelProperty("是否有配件")
private boolean accessoriesAmountCb;
@ApiModelProperty("挂车金额")
private String trailerAmount;
@ApiModelProperty("是否有挂车")
private boolean trailerAmountCb;
@ApiModelProperty("购置税")
private String purchaseTax;
@ApiModelProperty("是否有购置税")
private boolean purchaseTaxCb;
@ApiModelProperty("保险金额")
private String premium;
@ApiModelProperty("是否有保险")
private boolean premiumCb;
@ApiModelProperty("首付款比例")
private String downPayRatio; private String downPayRatio;
@ApiModelProperty("首付金额") @ApiModelProperty("首付金额")
private String downPayAmount; private String downPayAmount;
@ApiModelProperty("产品贷款金额") @ApiModelProperty("贷款金额")
private String loanAmount; private String loanAmount;
@ApiModelProperty("产品期数") @ApiModelProperty("贷款期数")
private String loanPeriod; private String loanPeriod;
@ApiModelProperty("贷款保证金比例") @ApiModelProperty("保证金比例")
private String bondRatio; private String bondRatio;
@ApiModelProperty("贷款保证金") @ApiModelProperty("保证金金额")
private String bondAmount; private String bondAmount;
@ApiModelProperty("厂家贴息") @ApiModelProperty("厂家贴息")
private String factoryDiscount; private String factoryDiscount;
@ApiModelProperty("贴息用途") @ApiModelProperty("厂家贴息用途")
private String factoryDiscountUse; private String factoryDiscountUse;
@ApiModelProperty("年利率(%)") @ApiModelProperty("年利率")
private String policyYearRatio; private String policyYearRatio;
@ApiModelProperty("月还金额") @ApiModelProperty("贷款月还")
private String loanPayMoney; private String loanPayMoney;
@ApiModelProperty("利息总额") @ApiModelProperty("贷款利息")
private String loanInterest; private String loanInterest;
@ApiModelProperty("贴息抵车款") @ApiModelProperty("贴息抵车款")
private String discountCar; private String discountCar;
//其他融
@ApiModelProperty("是否勾选其它融") @ApiModelProperty("是否勾选其它融")
private boolean otherPolicyState; private boolean otherPolicyState;
/**************************其他融*********************************/
private boolean otherPolicyIsMain;
@ApiModelProperty("其它融名称") @ApiModelProperty("其它融名称")
private String otherPolicyName; private String otherPolicyName;
@ApiModelProperty("其它融贷款金额") @ApiModelProperty("其他融sid")
private String otherPolicySid;
@ApiModelProperty("其它融金额")
private String otherPolicyAmount; private String otherPolicyAmount;
@ApiModelProperty("其它融期数") @ApiModelProperty("其它融期数")
private String otherPolicyPeriod; private String otherPolicyPeriod;
@ -55,12 +85,9 @@ public class BaseJRFAVo {
private String otherPolicyInterest; private String otherPolicyInterest;
@ApiModelProperty("其它融年利率") @ApiModelProperty("其它融年利率")
private String otherPolicyYearRatio; private String otherPolicyYearRatio;
/*************************方案汇总*********************************/
//方案汇总 @ApiModelProperty("'融资首付")
@ApiModelProperty("融资首付")
private String loanDownPay; private String loanDownPay;
@ApiModelProperty("实际首付比例")
private String downPayAmountsRatio;
@ApiModelProperty("总贷款金额") @ApiModelProperty("总贷款金额")
private String loanAmountTotal; private String loanAmountTotal;
@ApiModelProperty("期数") @ApiModelProperty("期数")
@ -72,9 +99,11 @@ public class BaseJRFAVo {
@ApiModelProperty("预计首期还款日") @ApiModelProperty("预计首期还款日")
private String returnTime; private String returnTime;
//应收明细 /***************************金融方案应收明细*******************************/
@ApiModelProperty("融资首付") @ApiModelProperty("融资首付")
private String downPayAmounts; private String downPayAmounts;
@ApiModelProperty("实际首付比例")
private String downPayAmountsRatio;
@ApiModelProperty("贷款保证金") @ApiModelProperty("贷款保证金")
private String bondAmounts; private String bondAmounts;
@ApiModelProperty("保险保证金") @ApiModelProperty("保险保证金")
@ -97,24 +126,43 @@ public class BaseJRFAVo {
private String otherAmountRemark; private String otherAmountRemark;
@ApiModelProperty("办理方式选择") @ApiModelProperty("办理方式选择")
private String dealWay; private String dealWay;
@ApiModelProperty("办理方式选择key")
private String dealWayKey;
@ApiModelProperty("代收合计") @ApiModelProperty("代收合计")
private String proxyTotal; private String proxyTotal;
@ApiModelProperty("代收首年保险费") @ApiModelProperty("代收首年保险费")
private String proxyPremium; private String proxyPremium;
@ApiModelProperty("代收购置费") @ApiModelProperty("代收购置费")
private String proxyPurchasetax; private String proxyPurchasetax;
@ApiModelProperty("应收合计")
private String receivableTotal;
@ApiModelProperty("抵顶费用合计")
private String offsetTotal;
@ApiModelProperty("抵顶首年保险费") @ApiModelProperty("抵顶首年保险费")
private String offsetPremium; private String offsetPremium;
@ApiModelProperty("抵顶购置税") @ApiModelProperty("抵顶购置税")
private String offsetPurchasetax; private String offsetPurchasetax;
@ApiModelProperty("抵顶费用合计")
private String offsetTotal;
@ApiModelProperty("应收合计")
private String receivableTotal;
@ApiModelProperty("实收合计") @ApiModelProperty("实收合计")
private String realTotal; private String realTotal;
@ApiModelProperty("车辆总价") @ApiModelProperty("车辆总价")
private String vehTotalPrice; private String vehTotalPrice;
@ApiModelProperty("名义留购价") @ApiModelProperty("名义留购价")
private String nominalPrice; private String nominalPrice;
@ApiModelProperty("单台成交价")
private String finalPrice;
@ApiModelProperty("挂车价格")
private String gcPrice;
@ApiModelProperty("上装成交价")
private String szPrice;
@ApiModelProperty("拼接的List")
private List<BaseSolutionListVo> financeForms = new ArrayList<>();
private String serviceChargeTypeKey;
private String serviceChargeTypeValue;
private String modelSid;
} }

26
anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/basevehicleout/BaseSolutionListVo.java

@ -0,0 +1,26 @@
package com.yxt.anrui.base.api.basevehicleout;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description:
* @author: dimengzhe
* @date: 2023/8/15
**/
@Data
public class BaseSolutionListVo implements Vo {
private static final long serialVersionUID = -8839895532609865401L;
@ApiModelProperty(value = "内容")
private String value;
@ApiModelProperty(value = "单元格大小")
private Integer spanSize;
@ApiModelProperty("类型:0 最普通的 1 标题的 2是 加上划线的")
private Integer type;
@ApiModelProperty("是否加粗,true是,false否")
private boolean bold;
}

1
anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/basevehicleout/BaseVehicleOutFeign.java

@ -105,6 +105,7 @@ public interface BaseVehicleOutFeign {
@ApiOperation(("打印交接单")) @ApiOperation(("打印交接单"))
@PostMapping("/createjrbjdPdf") @PostMapping("/createjrbjdPdf")
@ResponseBody
public ResultBean<PdfPath> createjrbjdPdf(@RequestParam("sid") String sid); public ResultBean<PdfPath> createjrbjdPdf(@RequestParam("sid") String sid);
} }

226
anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicleout/BaseVehicleOutService.java

@ -71,6 +71,7 @@ import com.yxt.anrui.portal.api.sysuser.SysUserVo;
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutionsFeign; import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutionsFeign;
import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionsDetailsVo; import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionsDetailsVo;
import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionssVo; import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionssVo;
import com.yxt.common.base.config.component.DocPdfComponent;
import com.yxt.common.base.service.MybatisBaseService; import com.yxt.common.base.service.MybatisBaseService;
import com.yxt.common.base.utils.*; import com.yxt.common.base.utils.*;
import com.yxt.common.core.query.PagerQuery; import com.yxt.common.core.query.PagerQuery;
@ -82,6 +83,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.io.File;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.*;
@ -146,6 +148,8 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp
private BusSalesOrderModelFeign busSalesOrderModelFeign; private BusSalesOrderModelFeign busSalesOrderModelFeign;
@Autowired @Autowired
private BusSalesOrderMakeupFeign busSalesOrderMakeupFeign; private BusSalesOrderMakeupFeign busSalesOrderMakeupFeign;
@Autowired
private DocPdfComponent docPdfComponent;
public ResultBean<Boolean> vehicleOut(BaseVehicleOutDto dto) { public ResultBean<Boolean> vehicleOut(BaseVehicleOutDto dto) {
log.info("BaseVehicleOutService-vehicleOut-95:{}", JSONObject.toJSONString(dto)); log.info("BaseVehicleOutService-vehicleOut-95:{}", JSONObject.toJSONString(dto));
@ -2280,7 +2284,7 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp
//根据合同号和车辆sid查询销售订单车辆信息 //根据合同号和车辆sid查询销售订单车辆信息
BusSalesOrderVehicle busSalesOrderVehicle = busSalesOrderVehicleFeign.selectByNoAndVinSid(busDeliveredApply.getContractNo(), busDeliveredApplyDetails.get(0).getVinSid()).getData(); BusSalesOrderVehicle busSalesOrderVehicle = busSalesOrderVehicleFeign.selectByNoAndVinSid(busDeliveredApply.getContractNo(), busDeliveredApplyDetails.get(0).getVinSid()).getData();
//查询销售订单信息 //查询销售订单信息
BusSalesOrder busSalesOrder = busSalesOrderFeign.selectOrderByContractNo(busSalesOrderVehicle.getSalesOrderSid()).getData(); BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(busSalesOrderVehicle.getSalesOrderSid()).getData();
//销售部门 //销售部门
baseQuotationVo.setSaleDeptName(busSalesOrder.getOrgName()); baseQuotationVo.setSaleDeptName(busSalesOrder.getOrgName());
//销售人员 //销售人员
@ -2368,99 +2372,135 @@ public class BaseVehicleOutService extends MybatisBaseService<BaseVehicleOutMapp
BaseQuotationVo baseQuotationVo = selectQuotation(sid).getData(); BaseQuotationVo baseQuotationVo = selectQuotation(sid).getData();
BaseJRFAVo baseJRFAVo = baseQuotationVo.getBaseJRFAVo(); BaseJRFAVo baseJRFAVo = baseQuotationVo.getBaseJRFAVo();
PdfPath pdfPath = new PdfPath(); PdfPath pdfPath = new PdfPath();
Map<String, Object> dataMap = new HashMap<String, Object>(); //查询出库申请
dataMap.put("saleDeptName", baseQuotationVo.getSaleDeptName()); BusDeliveredApply busDeliveredApply = busDeliveredApplyFeign.fetchBySid(sid).getData();
dataMap.put("staffName", baseQuotationVo.getStaffName()); //查询出库申请车辆表
dataMap.put("loanContractNo", baseQuotationVo.getLoanContractNo()); List<BusDeliveredApplyDetails> busDeliveredApplyDetails = busDeliveredApplyDetailsFeign.selectByApplySid(busDeliveredApply.getSid()).getData();
//客户信息 //销售订单
dataMap.put("loanBorrName", baseQuotationVo.getLoanBorrName()); BusSalesOrder busSalesOrder = busSalesOrderFeign.selectOrderByContractNo(busDeliveredApply.getContractNo()).getData();
dataMap.put("vinNo", baseQuotationVo.getVinNo()); List<File> filesList = new ArrayList<>();
dataMap.put("mobile", baseQuotationVo.getMobile()); for (int i = 0; i < busDeliveredApplyDetails.size(); i++) {
dataMap.put("address", baseQuotationVo.getAddress()); Map<String, Object> dataMap = new HashMap<>();
dataMap.put("affiliatedCompany", baseQuotationVo.getAffiliatedCompany()); dataMap.put("saleDeptName", baseQuotationVo.getSaleDeptName());
//车型及价格 dataMap.put("staffName", baseQuotationVo.getStaffName());
dataMap.put("modelName", baseQuotationVo.getModelName()); dataMap.put("loanContractNo", baseQuotationVo.getLoanContractNo());
dataMap.put("gcOneModel", baseQuotationVo.getGcOneModel()); //客户信息
dataMap.put("gcOnePurUnit", baseQuotationVo.getGcOnePurUnit()); dataMap.put("loanBorrName", baseQuotationVo.getLoanBorrName());
dataMap.put("gcTwoModel", baseQuotationVo.getGcTwoModel()); dataMap.put("vinNo", busDeliveredApplyDetails.get(i).getVinNo());
dataMap.put("gcTwoPurUnit", baseQuotationVo.getGcTwoPurUnit()); dataMap.put("mobile", baseQuotationVo.getMobile());
dataMap.put("szOneName", baseQuotationVo.getSzOneName()); dataMap.put("address", baseQuotationVo.getAddress());
dataMap.put("szOnePurUnit", baseQuotationVo.getSzOnePurUnit()); dataMap.put("affiliatedCompany", baseQuotationVo.getAffiliatedCompany());
dataMap.put("szTwoName", baseQuotationVo.getSzTwoName()); //车型及价格
dataMap.put("szTwoPurUnit", baseQuotationVo.getSzTwoPurUnit()); dataMap.put("modelName", baseQuotationVo.getModelName());
dataMap.put("remarks", baseQuotationVo.getRemarks()); //查询挂车信息
//金融方案 List<BaseTrailerVo> baseTrailerVos = baseTrailerService.fetchAllByVehSid(busDeliveredApplyDetails.get(i).getVinSid());
dataMap.put("isPack", baseJRFAVo.getIsPack()); if (baseTrailerVos.size() == 1) {
dataMap.put("policyName", baseJRFAVo.getPolicyName()); BaseTrailerVo baseTrailerVo = baseTrailerVos.get(0);
dataMap.put("financProject", baseJRFAVo.getFinancProject()); dataMap.put("gcOneModel", baseTrailerVo.getTrailerModel());
dataMap.put("loanTotal", baseJRFAVo.getLoanTotal()); dataMap.put("gcOnePurUnit", "");
dataMap.put("sfbl", baseJRFAVo.getDownPayRatio()); } else if (baseTrailerVos.size() > 1) {
dataMap.put("sfje", baseJRFAVo.getDownPayAmount()); BaseTrailerVo baseTrailerVo1 = baseTrailerVos.get(0);
dataMap.put("cpdkje", baseJRFAVo.getLoanAmount()); dataMap.put("gcOneModel", baseTrailerVo1.getTrailerModel());
dataMap.put("cpqs", baseJRFAVo.getLoanPeriod()); dataMap.put("gcOnePurUnit", "");
dataMap.put("dkbzjbl", baseJRFAVo.getBondRatio());
dataMap.put("dkbzj", baseJRFAVo.getBondAmount()); BaseTrailerVo baseTrailerVo2 = baseTrailerVos.get(1);
dataMap.put("cjtx", baseJRFAVo.getFactoryDiscount()); dataMap.put("gcTwoModel", baseTrailerVo2.getTrailerModel());
dataMap.put("txyt", baseJRFAVo.getFactoryDiscountUse()); dataMap.put("gcTwoPurUnit", "");
dataMap.put("nll", baseJRFAVo.getPolicyYearRatio()); }
dataMap.put("yhje", baseJRFAVo.getLoanPayMoney()); //查询上装信息
dataMap.put("lxze", baseJRFAVo.getLoanInterest()); BaseVehinstallDetailsVo baseVehinstallDetailsVo = baseVehinstallService.fetchByVinNoAndOrgSid(busDeliveredApplyDetails.get(0).getVinNo(), busDeliveredApply.getUseOrgSid());
dataMap.put("txdck", baseJRFAVo.getDiscountCar()); if (baseVehinstallDetailsVo != null) {
//其他融 BusSalesOrderMakeup busSalesOrderMakeup = busSalesOrderMakeupFeign.selectTop(baseVehinstallDetailsVo.getSid(), busSalesOrder.getSid()).getData();
dataMap.put("otherPolicyState", baseJRFAVo.isOtherPolicyState()); if (busSalesOrderMakeup != null) {
dataMap.put("otherPolicyName", baseJRFAVo.getOtherPolicyName()); dataMap.put("szOneName", busSalesOrderMakeup.getTopName());
dataMap.put("qtrdkje", baseJRFAVo.getOtherPolicyAmount()); dataMap.put("szOnePurUnit", busSalesOrderMakeup.getRefitFactory());
dataMap.put("qtrqs", baseJRFAVo.getOtherPolicyPeriod()); }
dataMap.put("qtrnll", baseJRFAVo.getOtherPolicyYearRatio()); }
dataMap.put("qtryhje", baseJRFAVo.getOtherPolicyMonthlyRepay()); dataMap.put("szTwoName", "");
dataMap.put("otherPolicyInterest", baseJRFAVo.getOtherPolicyInterest()); dataMap.put("szTwoPurUnit", "");
//方案汇总 dataMap.put("remarks", baseQuotationVo.getRemarks());
dataMap.put("loanDownPay", baseJRFAVo.getLoanDownPay()); //金融方案
dataMap.put("downPayAmountsRatio", baseJRFAVo.getDownPayAmountsRatio()); dataMap.put("isPack", baseJRFAVo.getIsPack());
dataMap.put("loanAmountTotal", baseJRFAVo.getLoanAmountTotal()); dataMap.put("policyName", baseJRFAVo.getPolicyName());
dataMap.put("period", baseJRFAVo.getPeriod()); dataMap.put("financProject", baseJRFAVo.getFinancProject());
dataMap.put("monthlyRepay", baseJRFAVo.getMonthlyRepay()); dataMap.put("loanTotal", baseJRFAVo.getLoanTotal());
dataMap.put("interest", baseJRFAVo.getInterest()); dataMap.put("sfbl", baseJRFAVo.getDownPayRatio());
dataMap.put("returnTime", baseJRFAVo.getReturnTime()); dataMap.put("sfje", baseJRFAVo.getDownPayAmount());
//应收明细 dataMap.put("cpdkje", baseJRFAVo.getLoanAmount());
dataMap.put("downPayAmounts", baseJRFAVo.getDownPayAmounts()); dataMap.put("cpqs", baseJRFAVo.getLoanPeriod());
dataMap.put("bondAmounts", baseJRFAVo.getBondAmounts()); dataMap.put("dkbzjbl", baseJRFAVo.getBondRatio());
dataMap.put("depositPremium", baseJRFAVo.getDepositPremium()); dataMap.put("dkbzj", baseJRFAVo.getBondAmount());
dataMap.put("depositSettle", baseJRFAVo.getDepositSettle()); dataMap.put("cjtx", baseJRFAVo.getFactoryDiscount());
dataMap.put("serviceAmount", baseJRFAVo.getServiceAmount()); dataMap.put("txyt", baseJRFAVo.getFactoryDiscountUse());
dataMap.put("proxyAccidentPremium", baseJRFAVo.getProxyAccidentPremium()); dataMap.put("nll", baseJRFAVo.getPolicyYearRatio());
dataMap.put("registerAmount", baseJRFAVo.getRegisterAmount()); dataMap.put("yhje", baseJRFAVo.getLoanPayMoney());
dataMap.put("operationAmount", baseJRFAVo.getOperationAmount()); dataMap.put("lxze", baseJRFAVo.getLoanInterest());
dataMap.put("vehOtherPrice", baseJRFAVo.getVehOtherPrice()); dataMap.put("txdck", baseJRFAVo.getDiscountCar());
dataMap.put("otherAmount", baseJRFAVo.getOtherAmount()); //其他融
dataMap.put("otherAmountRemark", baseJRFAVo.getOtherAmountRemark()); dataMap.put("otherPolicyState", baseJRFAVo.isOtherPolicyState());
dataMap.put("dealWay", baseJRFAVo.getDealWay()); dataMap.put("otherPolicyName", baseJRFAVo.getOtherPolicyName());
dataMap.put("proxyTotal", baseJRFAVo.getProxyTotal()); dataMap.put("qtrdkje", baseJRFAVo.getOtherPolicyAmount());
dataMap.put("proxyPremium", baseJRFAVo.getProxyPremium()); dataMap.put("qtrqs", baseJRFAVo.getOtherPolicyPeriod());
dataMap.put("proxyPurchasetax", baseJRFAVo.getProxyPurchasetax()); dataMap.put("qtrnll", baseJRFAVo.getOtherPolicyYearRatio());
dataMap.put("receivableTotal", baseJRFAVo.getReceivableTotal()); dataMap.put("qtryhje", baseJRFAVo.getOtherPolicyMonthlyRepay());
dataMap.put("offsetTotal", baseJRFAVo.getOffsetTotal()); dataMap.put("otherPolicyInterest", baseJRFAVo.getOtherPolicyInterest());
dataMap.put("offsetPremium", baseJRFAVo.getOffsetPremium()); //方案汇总
dataMap.put("offsetPurchasetax", baseJRFAVo.getOffsetPurchasetax()); dataMap.put("loanDownPay", baseJRFAVo.getLoanDownPay());
dataMap.put("realTotal", baseJRFAVo.getRealTotal()); dataMap.put("downPayAmountsRatio", baseJRFAVo.getDownPayAmountsRatio());
dataMap.put("vehTotalPrice", baseJRFAVo.getVehTotalPrice()); dataMap.put("loanAmountTotal", baseJRFAVo.getLoanAmountTotal());
dataMap.put("nominalPrice", baseJRFAVo.getNominalPrice()); dataMap.put("period", baseJRFAVo.getPeriod());
//获取模板 dataMap.put("monthlyRepay", baseJRFAVo.getMonthlyRepay());
//模板路径 dataMap.put("interest", baseJRFAVo.getInterest());
String sourcePath = "D:\\anrui\\upload\\template\\"; dataMap.put("returnTime", baseJRFAVo.getReturnTime());
//生成word文件名 //应收明细
dataMap.put("downPayAmounts", baseJRFAVo.getDownPayAmounts());
dataMap.put("bondAmounts", baseJRFAVo.getBondAmounts());
dataMap.put("depositPremium", baseJRFAVo.getDepositPremium());
dataMap.put("depositSettle", baseJRFAVo.getDepositSettle());
dataMap.put("serviceAmount", baseJRFAVo.getServiceAmount());
dataMap.put("proxyAccidentPremium", baseJRFAVo.getProxyAccidentPremium());
dataMap.put("registerAmount", baseJRFAVo.getRegisterAmount());
dataMap.put("operationAmount", baseJRFAVo.getOperationAmount());
dataMap.put("vehOtherPrice", baseJRFAVo.getVehOtherPrice());
dataMap.put("otherAmount", baseJRFAVo.getOtherAmount());
dataMap.put("otherAmountRemark", baseJRFAVo.getOtherAmountRemark());
dataMap.put("dealWay", baseJRFAVo.getDealWay());
dataMap.put("proxyTotal", baseJRFAVo.getProxyTotal());
dataMap.put("proxyPremium", baseJRFAVo.getProxyPremium());
dataMap.put("proxyPurchasetax", baseJRFAVo.getProxyPurchasetax());
dataMap.put("receivableTotal", baseJRFAVo.getReceivableTotal());
dataMap.put("offsetTotal", baseJRFAVo.getOffsetTotal());
dataMap.put("offsetPremium", baseJRFAVo.getOffsetPremium());
dataMap.put("offsetPurchasetax", baseJRFAVo.getOffsetPurchasetax());
dataMap.put("realTotal", baseJRFAVo.getRealTotal());
dataMap.put("vehTotalPrice", baseJRFAVo.getVehTotalPrice());
dataMap.put("nominalPrice", baseJRFAVo.getNominalPrice());
//获取模板
//模板路径
String sourcePath = "D:\\anrui\\upload\\template\\";
//生成word文件名
String dateStr = DateUtil.format(new Date(), "yyyyMMdd");
long seconds = System.currentTimeMillis();
String typeName = dateStr + seconds + ".doc";
//生成文件路径
String targetPath = sourcePath + dateStr;
WordUtils.creatWord(dataMap, "jrbjd", sourcePath, targetPath, typeName);
//新生成的word路径
String wordPath = targetPath + "\\" + typeName;
//生成出门证文件名
String pdfName = "金融报价单_" + dateStr + seconds + ".pdf";
WordUtils.doc2pdf(wordPath, targetPath, pdfName, "");
File file = new File(docPdfComponent.getUploadTemplateUrl() + dateStr + "/" + pdfName);
filesList.add(file);
}
String typeName = "金融报价单_" + busDeliveredApply.getContractNo() + ".pdf";
String dateStr = DateUtil.format(new Date(), "yyyyMMdd"); String dateStr = DateUtil.format(new Date(), "yyyyMMdd");
long seconds = System.currentTimeMillis(); try {
String typeName = dateStr + seconds + ".doc"; File allFile = WordConvertUtils.mulFile2One(filesList, docPdfComponent.getUploadTemplateUrl() + dateStr + "/" + typeName);
//生成文件路径 } catch (Exception e) {
String targetPath = sourcePath + dateStr; e.printStackTrace();
WordUtils.creatWord(dataMap, "jrbjd", sourcePath, targetPath, typeName); }
//新生成的word路径 pdfPath.setPdfPath("/template/" + dateStr + "/" + typeName);
String wordPath = targetPath + "\\" + typeName;
//生成出门证文件名
String pdfName = "金融报价单_" + dateStr + seconds + ".pdf";
WordUtils.doc2pdf(wordPath, targetPath, pdfName, "");
pdfPath.setPdfPath("/template/" + dateStr + "/" + pdfName);
return pdfPath; return pdfPath;
} }
} }

2
anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/bussalesorderloancontract/BusSalesOrderLoancontract.java

@ -59,7 +59,7 @@ public class BusSalesOrderLoancontract extends BaseEntity {
@ApiModelProperty("台数") @ApiModelProperty("台数")
private Integer vehCount; // 台数 private Integer vehCount; // 台数
@ApiModelProperty("消贷合同编号") @ApiModelProperty("消贷合同编号")
private String loanCotractNo; // 消贷合同编号 private String loanContractNo; // 消贷合同编号
@ApiModelProperty("资方合同号") @ApiModelProperty("资方合同号")
private String bankContractNo; // 资方合同号 private String bankContractNo; // 资方合同号
@ApiModelProperty("资方名称") @ApiModelProperty("资方名称")

Loading…
Cancel
Save