Commit 55c39a85 by 王军业

212112

1 parent f502bdbd
...@@ -578,7 +578,7 @@ public class ContractServiceImpl implements ContractService { ...@@ -578,7 +578,7 @@ public class ContractServiceImpl implements ContractService {
} }
try { try {
DownLoad downLoad =new DownLoad(); DownLoad downLoad =new DownLoad();
/* if(selectVo.getColumns() != null && selectVo.getColumns().length > 0) { if(selectVo.getColumns() != null && selectVo.getColumns().length > 0) {
//动态生成excel表头 //动态生成excel表头
ExcelExportEntity excelExportEntity = new ExcelExportEntity("合同编号"); ExcelExportEntity excelExportEntity = new ExcelExportEntity("合同编号");
excelExportEntity.setWidth(20); excelExportEntity.setWidth(20);
...@@ -589,8 +589,8 @@ public class ContractServiceImpl implements ContractService { ...@@ -589,8 +589,8 @@ public class ContractServiceImpl implements ContractService {
}else { }else {
downLoad.exportExcel(list, "合同Excel表格", "合同Excel表格", ExportModel.class, "合同.xls", response); downLoad.exportExcel(list, "合同Excel表格", "合同Excel表格", ExportModel.class, "合同.xls", response);
}*/ }
downLoad.exportExcel(list, "合同Excel表格", "合同Excel表格", ExportModel.class, "合同.xls", response);
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!