Sfoglia il codice sorgente

导出修改测试

Signed-off-by: anderx <312518615@qq.com>
anderx 5 anni fa
parent
commit
00e4642e3d

+ 1 - 2
src/main/java/com/goafanti/demandCollection/service/impl/DemandCollectionServiceImpl.java

@@ -65,7 +65,6 @@ public class DemandCollectionServiceImpl extends BaseMybatisDao<DemandCollection
 	public void exportDemandCollectionList(HttpServletResponse response, InputDemandCollection idc) throws IOException {
 		OutputStream out = response.getOutputStream();
 		try {
-			List<OutDemandCollection>list=(List<OutDemandCollection>) demandCollectionList(idc).getList();
 			String[] comment = { "编号", "单位名称", "单位性质", "行业领域", "所属市州", "所属园区", "拥有的省级及以上平台", "法人代表", "统一社会信用代码", "经济规模",
 					"人员规模", "成立时间", "注册资本", "通讯地址", "邮编", "联系人", "联系电话", "email", "主营业务及核心产品(服务)", "2018年度项目主营业务收入(万元)",
 					"2018年度项目净利润(万元)", "2019年度项目主营业务收入(万元)", "2019年度项目净利润(万元)", "年度研发投入", "年度研发投入占营业收入比例", "是否曾获银行贷款",
@@ -84,7 +83,7 @@ public class DemandCollectionServiceImpl extends BaseMybatisDao<DemandCollection
     		XSSFCellStyle styleTitle = wb.createCellStyle();
 			styleTitle.setAlignment(HorizontalAlignment.CENTER);
 			styleTitle.setWrapText(true);
-    		for (OutDemandCollection ob : (List<OutDemandCollection>)list) {
+    		for (OutDemandCollection ob : (List<OutDemandCollection>)demandCollectionList(idc).getList()) {
     			int x=0;
     			
     			//新增一行