|
|
@ -863,7 +863,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
} |
|
|
|
map.put("invoiceType", busSalesOrder.getBillingType());//开票类型
|
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
/*if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
@ -872,6 +872,20 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if(StringUtils.isNotBlank(busSalesOrder.getCompanyInvoicingName())){ |
|
|
|
map.put("createOrgName",busSalesOrder.getCompanyInvoicingName()); |
|
|
|
}else{ |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("1".equals(busSalesOrder.getType()) && (StringUtils.isBlank(busSalesOrder.getNowCarUnknownVinNum()) || "0".equals(busSalesOrder.getNowCarUnknownVinNum()))) { |
|
|
|
//获取模板
|
|
|
@ -985,7 +999,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
} |
|
|
|
map.put("invoiceType", busSalesOrder.getBillingType());//开票类型
|
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
/*if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
@ -994,6 +1008,20 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if(StringUtils.isNotBlank(busSalesOrder.getCompanyInvoicingName())){ |
|
|
|
map.put("createOrgName",busSalesOrder.getCompanyInvoicingName()); |
|
|
|
}else{ |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("1".equals(busSalesOrder.getType()) && (StringUtils.isBlank(busSalesOrder.getNowCarUnknownVinNum()) || "0".equals(busSalesOrder.getNowCarUnknownVinNum()))) { |
|
|
|
//获取模板
|
|
|
@ -1413,7 +1441,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
String idNo = crmCustomerTempVo.getIDNumber(); |
|
|
|
map.put("customerName", appOrderDetailsVo.getName()); |
|
|
|
map.put("idNo", idNo); |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
/* if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
@ -1422,6 +1450,20 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if(StringUtils.isNotBlank(appOrderDetailsVo.getCompanyInvoicingName())){ |
|
|
|
map.put("createOrgName",appOrderDetailsVo.getCompanyInvoicingName()); |
|
|
|
}else{ |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
String ftl = "receiveCar"; |
|
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + ftl + ".ftl"); |
|
|
@ -1560,7 +1602,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
} |
|
|
|
} |
|
|
|
map.put("contractNo", "D" + map.get("contractNo")); |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
/*if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
@ -1569,6 +1611,20 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if(StringUtils.isNotBlank(appOrderDetailsVo.getCompanyInvoicingName())){ |
|
|
|
map.put("createOrgName",appOrderDetailsVo.getCompanyInvoicingName()); |
|
|
|
}else{ |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
CommonContract commonContract = baseMapper.selectByBusSidss(dto.getBusSid()); |
|
|
|
if (commonContract != null) { |
|
|
@ -1661,7 +1717,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("day", day); |
|
|
|
} |
|
|
|
BusSalesOrder busSalesOrder = baseMapper.selectByBusSids(dto.getBusSid()); |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
/*if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
@ -1670,6 +1726,20 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if(StringUtils.isNotBlank(appOrderDetailsVo.getCompanyInvoicingName())){ |
|
|
|
map.put("createOrgName",appOrderDetailsVo.getCompanyInvoicingName()); |
|
|
|
}else{ |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("1".equals(busSalesOrder.getType()) && (StringUtils.isBlank(busSalesOrder.getNowCarUnknownVinNum()) || "0".equals(busSalesOrder.getNowCarUnknownVinNum()))) { |
|
|
|
//获取模板
|
|
|
@ -1762,7 +1832,7 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("day", day); |
|
|
|
} |
|
|
|
BusSalesOrder busSalesOrder = baseMapper.selectByBusSids(dto.getBusSid()); |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
/*if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
@ -1771,6 +1841,20 @@ public class CommonContractService extends MybatisBaseService<CommonContractMapp |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if(StringUtils.isNotBlank(appOrderDetailsVo.getCompanyInvoicingName())){ |
|
|
|
map.put("createOrgName",appOrderDetailsVo.getCompanyInvoicingName()); |
|
|
|
}else{ |
|
|
|
if (StringUtils.isNotBlank(dto.getCreateOrgName())) { |
|
|
|
map.put("createOrgName", dto.getCreateOrgName()); |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(appOrderDetailsVo.getPurchaseSystemSid())) { |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("createOrgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("1".equals(busSalesOrder.getType()) && (StringUtils.isBlank(busSalesOrder.getNowCarUnknownVinNum()) || "0".equals(busSalesOrder.getNowCarUnknownVinNum()))) { |
|
|
|
//获取模板
|
|
|
|