|
|
@ -449,12 +449,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteOne(String supplierCode, HttpServletResponse response) { |
|
|
|
|
|
|
|
String fileName = "客户报价1.xlsx"; |
|
|
|
String fileName = "Vantritek-RMB.xlsx"; |
|
|
|
|
|
|
|
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils(); |
|
|
|
try { |
|
|
|
|
|
|
|
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName); |
|
|
|
|
|
|
|
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx"; |
|
|
|
|
|
|
@ -502,7 +501,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
|
} |
|
|
|
|
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build(); |
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build(); |
|
|
|
WriteSheet sheet = EasyExcel.writerSheet().build(); |
|
|
|
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build(); |
|
|
|
workBook.fill(map, sheet); |
|
|
@ -521,12 +520,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteTwo(String supplierCode, HttpServletResponse response) { |
|
|
|
String fileName = "客户报价2.xlsx"; |
|
|
|
String fileName = "Vantritek-美元.xlsx"; |
|
|
|
|
|
|
|
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils(); |
|
|
|
try { |
|
|
|
|
|
|
|
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName); |
|
|
|
|
|
|
|
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx"; |
|
|
|
|
|
|
@ -567,7 +565,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
|
} |
|
|
|
|
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build(); |
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build(); |
|
|
|
WriteSheet sheet = EasyExcel.writerSheet().build(); |
|
|
|
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build(); |
|
|
|
workBook.fill(map, sheet); |
|
|
@ -585,12 +583,11 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteThree(String supplierCode, HttpServletResponse response) { |
|
|
|
String fileName = "客户报价3.xlsx"; |
|
|
|
String fileName = "Infinity-RMB.xlsx"; |
|
|
|
|
|
|
|
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils(); |
|
|
|
try { |
|
|
|
|
|
|
|
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName); |
|
|
|
|
|
|
|
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx"; |
|
|
|
|
|
|
@ -638,7 +635,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
|
} |
|
|
|
|
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build(); |
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build(); |
|
|
|
WriteSheet sheet = EasyExcel.writerSheet().build(); |
|
|
|
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build(); |
|
|
|
workBook.fill(map, sheet); |
|
|
@ -656,12 +653,12 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
* */ |
|
|
|
@Override |
|
|
|
public void exportCustomerQuoteFour(String supplierCode, HttpServletResponse response) { |
|
|
|
String fileName = "客户报价4.xlsx"; |
|
|
|
String fileName = "Infinity-美元.xlsx"; |
|
|
|
|
|
|
|
|
|
|
|
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils(); |
|
|
|
try { |
|
|
|
|
|
|
|
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
String fileAbsolutePath = FileDownloadUtils.getFileAbsolutePath(fileName); |
|
|
|
|
|
|
|
String realFileName = supplierCode +"-" + fileName.substring(0, fileName.indexOf(".")) + ".xlsx"; |
|
|
|
|
|
|
@ -702,7 +699,7 @@ public class SysCustomerQuoteServiceImpl implements ISysCustomerQuoteService { |
|
|
|
exportCustomerQuoteChildVos.add(exportCustomerQuoteChildVo); |
|
|
|
} |
|
|
|
|
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileRelativePath).build(); |
|
|
|
ExcelWriter workBook = EasyExcel.write(response.getOutputStream()).withTemplate(fileAbsolutePath).build(); |
|
|
|
WriteSheet sheet = EasyExcel.writerSheet().build(); |
|
|
|
FillConfig fillConfig = FillConfig.builder().forceNewRow(true).build(); |
|
|
|
workBook.fill(map, sheet); |
|
|
|