|
|
@ -31,6 +31,7 @@ public class ExportService implements IExportService { |
|
|
|
Workbook wb = new XSSFWorkbook(); |
|
|
|
//生成wbs表的数据
|
|
|
|
generateWbs(wb,wbsProjectInfo,wbsTaskInfo); |
|
|
|
|
|
|
|
//生成项目成员表的数据
|
|
|
|
List<List<PoiUtil.PoiUtilCell>> member = generateMember(wbsRoleInfo); |
|
|
|
PoiUtil.exportWB("项目成员表", member, wb); |
|
|
@ -45,6 +46,7 @@ public class ExportService implements IExportService { |
|
|
|
wb.write(stream); |
|
|
|
stream.close(); |
|
|
|
|
|
|
|
wb.close(); |
|
|
|
return PropUtil.imgDomain + "/" + fileName; |
|
|
|
} |
|
|
|
|
|
|
@ -191,12 +193,13 @@ public class ExportService implements IExportService { |
|
|
|
taskRow.add(new PoiUtil.PoiUtilCell(secondTask.getPluginThreeName(),secondTask.getPluginThreeId(),1,1)); |
|
|
|
} |
|
|
|
wbs.add(taskRow); |
|
|
|
if(wbs.size() >= 10){ |
|
|
|
if(wbs.size() >= 30){ |
|
|
|
//写入数据
|
|
|
|
PoiUtil.exportWB("WBS", rowIndex, wbs, wb); |
|
|
|
rowIndex += 10; |
|
|
|
rowIndex += 30; |
|
|
|
wbs.clear(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//写入数据
|
|
|
|