|
|
@ -486,7 +486,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteOne(String supplierCode, HttpServletResponse response) { |
|
|
|
|
|
|
|
String fileName = "Vantritek-RMB.xlsx"; |
|
|
|
String fileName = "中文Vantritek-RMB.xlsx"; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
@ -533,6 +533,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
ExportCustomerQuoteChildVo exportCustomerQuoteChildVo = new ExportCustomerQuoteChildVo(); |
|
|
|
exportCustomerQuoteChildVo.setDescribe(sysCustomerQuoteChild.getDescribe()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialNum(sysCustomerQuoteChild.getMaterialNum()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialModel(sysCustomerQuoteChild.getMaterialModel()); |
|
|
|
//区分币种
|
|
|
|
setMaterialPrice(exportCustomerQuoteChildVo, sysCustomerVo, sysCustomerQuoteChild); |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
@ -557,7 +558,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteTwo(String supplierCode, HttpServletResponse response) { |
|
|
|
String fileName = "Vantritek-美元.xlsx"; |
|
|
|
String fileName = "英文Vantritek-美元.xlsx"; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
@ -597,6 +598,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
ExportCustomerQuoteChildVo exportCustomerQuoteChildVo = new ExportCustomerQuoteChildVo(); |
|
|
|
exportCustomerQuoteChildVo.setDescribe(sysCustomerQuoteChild.getDescribe()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialNum(sysCustomerQuoteChild.getMaterialNum()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialModel(sysCustomerQuoteChild.getMaterialModel()); |
|
|
|
//区分币种
|
|
|
|
setMaterialPrice(exportCustomerQuoteChildVo, sysCustomerVo, sysCustomerQuoteChild); |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
@ -620,7 +622,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteThree(String supplierCode, HttpServletResponse response) { |
|
|
|
String fileName = "Infinity-RMB.xlsx"; |
|
|
|
String fileName = "英文Infinity-美元.xlsx"; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
@ -645,19 +647,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
String customerCode = sysCustomerQuote.getCustomerCode(); |
|
|
|
SysCustomerVo sysCustomerVo = sysCustomerMapper.selectSysCustomerByEnterpriseCode(customerCode); |
|
|
|
|
|
|
|
|
|
|
|
List<SysCompanyInformation> companyInformations = companyInformationMapper.selectSysCompanyInformationAllList(); |
|
|
|
//from
|
|
|
|
SysCompanyInformation sysCompanyInformation = companyInformations.get(0); |
|
|
|
|
|
|
|
HashMap<String, Object> map = new HashMap<>(); |
|
|
|
String pricingDate = sysCustomerQuote.getPricingDate(); |
|
|
|
|
|
|
|
map.put("supplierCode", sysCustomerQuote.getSupplierCode()); |
|
|
|
map.put("pricingDate", pricingDate); |
|
|
|
map.put("contacts", sysCompanyInformation.getContacts()); |
|
|
|
map.put("contactNumberFrom", sysCompanyInformation.getContactNumber()); |
|
|
|
map.put("companyEmail", sysCompanyInformation.getCompanyEmail()); |
|
|
|
map.put("customerContact", sysCustomerVo.getCustomerContact()); |
|
|
|
map.put("contactNumberTo", sysCustomerVo.getContactNumber()); |
|
|
|
map.put("customerEmail", sysCustomerVo.getCustomerEmail()); |
|
|
@ -667,6 +661,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
ExportCustomerQuoteChildVo exportCustomerQuoteChildVo = new ExportCustomerQuoteChildVo(); |
|
|
|
exportCustomerQuoteChildVo.setDescribe(sysCustomerQuoteChild.getDescribe()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialNum(sysCustomerQuoteChild.getMaterialNum()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialModel(sysCustomerQuoteChild.getMaterialModel()); |
|
|
|
//区分币种
|
|
|
|
setMaterialPrice(exportCustomerQuoteChildVo, sysCustomerVo, sysCustomerQuoteChild); |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
@ -690,7 +685,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteFour(String supplierCode, HttpServletResponse response) { |
|
|
|
String fileName = "Infinity-美元.xlsx"; |
|
|
|
String fileName = "中文Infinity-美元.xlsx"; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
@ -715,13 +710,18 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
|
|
|
|
String customerCode = sysCustomerQuote.getCustomerCode(); |
|
|
|
SysCustomerVo sysCustomerVo = sysCustomerMapper.selectSysCustomerByEnterpriseCode(customerCode); |
|
|
|
|
|
|
|
List<SysCompanyInformation> companyInformations = companyInformationMapper.selectSysCompanyInformationAllList(); |
|
|
|
//from
|
|
|
|
SysCompanyInformation sysCompanyInformation = companyInformations.get(0); |
|
|
|
|
|
|
|
HashMap<String, Object> map = new HashMap<>(); |
|
|
|
String pricingDate = sysCustomerQuote.getPricingDate(); |
|
|
|
|
|
|
|
map.put("supplierCode", sysCustomerQuote.getSupplierCode()); |
|
|
|
map.put("pricingDate", pricingDate); |
|
|
|
map.put("contacts", sysCompanyInformation.getContacts()); |
|
|
|
map.put("contactNumberFrom", sysCompanyInformation.getContactNumber()); |
|
|
|
map.put("companyEmail", sysCompanyInformation.getCompanyEmail()); |
|
|
|
map.put("customerContact", sysCustomerVo.getCustomerContact()); |
|
|
|
map.put("contactNumberTo", sysCustomerVo.getContactNumber()); |
|
|
|
map.put("customerEmail", sysCustomerVo.getCustomerEmail()); |
|
|
@ -731,6 +731,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
ExportCustomerQuoteChildVo exportCustomerQuoteChildVo = new ExportCustomerQuoteChildVo(); |
|
|
|
exportCustomerQuoteChildVo.setDescribe(sysCustomerQuoteChild.getDescribe()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialNum(sysCustomerQuoteChild.getMaterialNum()); |
|
|
|
exportCustomerQuoteChildVo.setMaterialModel(sysCustomerQuoteChild.getMaterialModel()); |
|
|
|
//区分币种
|
|
|
|
setMaterialPrice(exportCustomerQuoteChildVo, sysCustomerVo, sysCustomerQuoteChild); |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
@ -742,7 +743,6 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
workBook.fill(map, sheet); |
|
|
|
workBook.fill(exportCustomerQuoteChildVos, fillConfig, sheet); |
|
|
|
workBook.finish(); |
|
|
|
|
|
|
|
} catch (IOException e) { |
|
|
|
throw new RuntimeException("文件处理失败",e); |
|
|
|
} |
|
|
|