|
|
@ -1174,45 +1174,48 @@ public class FinBillApplicationService extends MybatisBaseService<FinBillApplica |
|
|
|
|
|
|
|
if ("1".equals(busSalesOrder.getPayTypeKey())) { |
|
|
|
if (loanSolutions != null) { |
|
|
|
if (busSalesOrderPrice.getSingleFinalPrice().compareTo(new BigDecimal(dto.getOneBillMoney())) != 0) { |
|
|
|
String remarks = ""; |
|
|
|
String date = DateUtil.today(); |
|
|
|
List<String> dateString = Arrays.asList(date.split("-")); |
|
|
|
String year = dateString.get(0); |
|
|
|
String month = dateString.get(1); |
|
|
|
String day = dateString.get(2); |
|
|
|
filemap.put("year", year); |
|
|
|
filemap.put("month", month); |
|
|
|
filemap.put("day", day); |
|
|
|
if (finCompanyInvoicingDetailsVo != null) { |
|
|
|
filemap.put("invoiceName", finCompanyInvoicingDetailsVo.getName());//开票名称
|
|
|
|
filemap.put("customerName", finCompanyInvoicingDetailsVo.getName());//乙方
|
|
|
|
filemap.put("invoiceNo", finCompanyInvoicingDetailsVo.getTaxpayerNo());//纳税人识别号
|
|
|
|
filemap.put("idNo", finCompanyInvoicingDetailsVo.getTaxpayerNo());//乙方证件号码
|
|
|
|
filemap.put("adds", finCompanyInvoicingDetailsVo.getAddress());//户籍地址
|
|
|
|
} else { |
|
|
|
CrmCustomerTemp crmCustomerTemp = baseMapper.selectByCustomerSid(dto.getOpenTickSid()); |
|
|
|
if (crmCustomerTemp != null) { |
|
|
|
filemap.put("invoiceName", crmCustomerTemp.getName());//开票名称
|
|
|
|
filemap.put("customerName", crmCustomerTemp.getName());//乙方
|
|
|
|
filemap.put("invoiceNo", crmCustomerTemp.getIDNumber());//纳税人识别号
|
|
|
|
filemap.put("idNo", crmCustomerTemp.getIDNumber());//乙方证件号码
|
|
|
|
filemap.put("adds", crmCustomerTemp.getCertificateAddress());//户籍地址
|
|
|
|
if(StringUtils.isNotBlank(dto.getOneBillMoney())){ |
|
|
|
if (busSalesOrderPrice.getSingleFinalPrice().compareTo(new BigDecimal(dto.getOneBillMoney())) != 0) { |
|
|
|
String remarks = ""; |
|
|
|
String date = DateUtil.today(); |
|
|
|
List<String> dateString = Arrays.asList(date.split("-")); |
|
|
|
String year = dateString.get(0); |
|
|
|
String month = dateString.get(1); |
|
|
|
String day = dateString.get(2); |
|
|
|
filemap.put("year", year); |
|
|
|
filemap.put("month", month); |
|
|
|
filemap.put("day", day); |
|
|
|
if (finCompanyInvoicingDetailsVo != null) { |
|
|
|
filemap.put("invoiceName", finCompanyInvoicingDetailsVo.getName());//开票名称
|
|
|
|
filemap.put("customerName", finCompanyInvoicingDetailsVo.getName());//乙方
|
|
|
|
filemap.put("invoiceNo", finCompanyInvoicingDetailsVo.getTaxpayerNo());//纳税人识别号
|
|
|
|
filemap.put("idNo", finCompanyInvoicingDetailsVo.getTaxpayerNo());//乙方证件号码
|
|
|
|
filemap.put("adds", finCompanyInvoicingDetailsVo.getAddress());//户籍地址
|
|
|
|
} else { |
|
|
|
CrmCustomerTemp crmCustomerTemp = baseMapper.selectByCustomerSid(dto.getOpenTickSid()); |
|
|
|
if (crmCustomerTemp != null) { |
|
|
|
filemap.put("invoiceName", crmCustomerTemp.getName());//开票名称
|
|
|
|
filemap.put("customerName", crmCustomerTemp.getName());//乙方
|
|
|
|
filemap.put("invoiceNo", crmCustomerTemp.getIDNumber());//纳税人识别号
|
|
|
|
filemap.put("idNo", crmCustomerTemp.getIDNumber());//乙方证件号码
|
|
|
|
filemap.put("adds", crmCustomerTemp.getCertificateAddress());//户籍地址
|
|
|
|
} |
|
|
|
} |
|
|
|
filemap.put("invoiceType", dto.getOpenTickTypeValue());//开票类型
|
|
|
|
remarks = "数量" + finBillVehicles.size() + "台,单台成交价: 元。"; |
|
|
|
filemap.put("remarks", remarks); |
|
|
|
filemap.put("busSid", busSalesOrder.getSid()); |
|
|
|
ResultBean<Map<String, Object>> mapResultBean = commonContractFeign.getModelMap(filemap); |
|
|
|
checkMap = mapResultBean.getData(); |
|
|
|
//生成新车空白合同
|
|
|
|
checkMap.put("totalPrice", ""); |
|
|
|
checkMap.put("priceRemarks", ""); |
|
|
|
checkMap.put("depositTotal", ""); |
|
|
|
checkMap.put("createOrgName", ""); |
|
|
|
checkMap.put("payTypeKey", busSalesOrder.getPayTypeKey()); |
|
|
|
} |
|
|
|
filemap.put("invoiceType", dto.getOpenTickTypeValue());//开票类型
|
|
|
|
remarks = "数量" + finBillVehicles.size() + "台,单台成交价: 元。"; |
|
|
|
filemap.put("remarks", remarks); |
|
|
|
filemap.put("busSid", busSalesOrder.getSid()); |
|
|
|
ResultBean<Map<String, Object>> mapResultBean = commonContractFeign.getModelMap(filemap); |
|
|
|
checkMap = mapResultBean.getData(); |
|
|
|
//生成新车空白合同
|
|
|
|
checkMap.put("totalPrice", ""); |
|
|
|
checkMap.put("priceRemarks", ""); |
|
|
|
checkMap.put("depositTotal", ""); |
|
|
|
checkMap.put("createOrgName", ""); |
|
|
|
checkMap.put("payTypeKey", busSalesOrder.getPayTypeKey()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|