|
@ -726,11 +726,11 @@ public class ExportWbsService implements IExportWbsService{ |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
List<PoiUtil.PoiUtilCell> row3 = new ArrayList<>(); |
|
|
List<PoiUtil.PoiUtilCell> row3 = new ArrayList<>(); |
|
|
row3.add(new PoiUtil.PoiUtilCell("时间",null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell("时间")); |
|
|
row3.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis()),null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis()))); |
|
|
row3.add(new PoiUtil.PoiUtilCell()); |
|
|
row3.add(new PoiUtil.PoiUtilCell()); |
|
|
row3.add(new PoiUtil.PoiUtilCell("项目",null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell("项目")); |
|
|
row3.add(new PoiUtil.PoiUtilCell(checklists.get(0).getProjectName(),null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell(checklists.get(0).getProjectName())); |
|
|
list.add(row3); |
|
|
list.add(row3); |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
int index = 1; |
|
|
int index = 1; |
|
@ -745,28 +745,28 @@ public class ExportWbsService implements IExportWbsService{ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
List<PoiUtil.PoiUtilCell> checkList = new ArrayList<>(); |
|
|
List<PoiUtil.PoiUtilCell> checkList = new ArrayList<>(); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(String.valueOf(index),null,null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getTaskName(),null,null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getTaskName())); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getRoleName(),null,null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getRoleName())); |
|
|
if(StrUtil.isNotEmpty(checklist.getCycle()) && !"不重复".equalsIgnoreCase(checklist.getCycle())){ |
|
|
if(StrUtil.isNotEmpty(checklist.getCycle()) && !"不重复".equalsIgnoreCase(checklist.getCycle())){ |
|
|
checkList.add(new PoiUtil.PoiUtilCell()); |
|
|
checkList.add(new PoiUtil.PoiUtilCell()); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getCycle())); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getCycle())); |
|
|
}else { |
|
|
}else { |
|
|
checkList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(checklist.getBeginTime()), null, null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(checklist.getBeginTime()))); |
|
|
String duration = null; |
|
|
String duration = null; |
|
|
if (checklist.getDuration() / 1000 / 3600 >= 2) { |
|
|
if (checklist.getDuration() / 1000 / 3600 >= 2) { |
|
|
duration = checklist.getDuration() / 1000 / 3600 + "小时"; |
|
|
duration = checklist.getDuration() / 1000 / 3600 + "小时"; |
|
|
} else { |
|
|
} else { |
|
|
duration = checklist.getDuration() / 1000 / 60 + "分钟"; |
|
|
duration = checklist.getDuration() / 1000 / 60 + "分钟"; |
|
|
} |
|
|
} |
|
|
checkList.add(new PoiUtil.PoiUtilCell(duration, null, null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(duration)); |
|
|
} |
|
|
} |
|
|
if(ObjectUtil.isNotNull(checklist.getCompleteTime())) { |
|
|
if(ObjectUtil.isNotNull(checklist.getCompleteTime())) { |
|
|
checkList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(checklist.getCompleteTime()), null, null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(checklist.getCompleteTime()))); |
|
|
}else { |
|
|
}else { |
|
|
checkList.add(new PoiUtil.PoiUtilCell()); |
|
|
checkList.add(new PoiUtil.PoiUtilCell()); |
|
|
} |
|
|
} |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getProcess(),null,null)); |
|
|
checkList.add(new PoiUtil.PoiUtilCell(checklist.getProcess())); |
|
|
list.add(checkList); |
|
|
list.add(checkList); |
|
|
index++; |
|
|
index++; |
|
|
} |
|
|
} |
|
@ -843,37 +843,37 @@ public class ExportWbsService implements IExportWbsService{ |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
List<PoiUtil.PoiUtilCell> row3 = new ArrayList<>(); |
|
|
List<PoiUtil.PoiUtilCell> row3 = new ArrayList<>(); |
|
|
row3.add(new PoiUtil.PoiUtilCell("时间",null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell("时间")); |
|
|
row3.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis()),null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis()))); |
|
|
row3.add(new PoiUtil.PoiUtilCell()); |
|
|
row3.add(new PoiUtil.PoiUtilCell()); |
|
|
row3.add(new PoiUtil.PoiUtilCell("项目",null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell("项目")); |
|
|
row3.add(new PoiUtil.PoiUtilCell(deliverWithExcelList.get(0).getProjectName(),null,null)); |
|
|
row3.add(new PoiUtil.PoiUtilCell(deliverWithExcelList.get(0).getProjectName())); |
|
|
list.add(row3); |
|
|
list.add(row3); |
|
|
list.add(row1); |
|
|
list.add(row1); |
|
|
int index = 1; |
|
|
int index = 1; |
|
|
for(WbsVo.DeliverWithExcel deliverWithExcel : deliverWithExcelList){ |
|
|
for(WbsVo.DeliverWithExcel deliverWithExcel : deliverWithExcelList){ |
|
|
|
|
|
|
|
|
List<PoiUtil.PoiUtilCell> mvpList = new ArrayList<>(); |
|
|
List<PoiUtil.PoiUtilCell> mvpList = new ArrayList<>(); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(String.valueOf(index),null,null)); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getTaskName(),2,1,null,null)); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getTaskName(),2,1,null,null)); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell()); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell()); |
|
|
if(StrUtil.isNotEmpty(deliverWithExcel.getTaskCycle()) && !"不重复".equalsIgnoreCase(deliverWithExcel.getTaskCycle())){ |
|
|
if(StrUtil.isNotEmpty(deliverWithExcel.getTaskCycle()) && !"不重复".equalsIgnoreCase(deliverWithExcel.getTaskCycle())){ |
|
|
mvpList.add(new PoiUtil.PoiUtilCell()); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell()); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getTaskCycle())); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getTaskCycle())); |
|
|
}else { |
|
|
}else { |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(deliverWithExcel.getTaskBeginTime()), null, null)); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(deliverWithExcel.getTaskBeginTime()))); |
|
|
String duration = null; |
|
|
String duration = null; |
|
|
if (deliverWithExcel.getTaskDuration() / 1000 / 3600 >= 2) { |
|
|
if (deliverWithExcel.getTaskDuration() / 1000 / 3600 >= 2) { |
|
|
duration = deliverWithExcel.getTaskDuration() / 1000 / 3600 + "小时"; |
|
|
duration = deliverWithExcel.getTaskDuration() / 1000 / 3600 + "小时"; |
|
|
} else { |
|
|
} else { |
|
|
duration = deliverWithExcel.getTaskDuration() / 1000 / 60 + "分钟"; |
|
|
duration = deliverWithExcel.getTaskDuration() / 1000 / 60 + "分钟"; |
|
|
} |
|
|
} |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(duration, null, null)); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(duration)); |
|
|
} |
|
|
} |
|
|
if(StrUtil.isEmpty(deliverWithExcel.getJumpPath())) { |
|
|
if(StrUtil.isEmpty(deliverWithExcel.getJumpPath())) { |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getDeliverName(), null, null)); |
|
|
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getDeliverName())); |
|
|
}else { |
|
|
}else { |
|
|
PoiUtil.PoiUtilCell poiUtilCell = new PoiUtil.PoiUtilCell(deliverWithExcel.getDeliverName(), null, null); |
|
|
PoiUtil.PoiUtilCell poiUtilCell = new PoiUtil.PoiUtilCell(deliverWithExcel.getDeliverName()); |
|
|
poiUtilCell.setPath(deliverWithExcel.getJumpPath()); |
|
|
poiUtilCell.setPath(deliverWithExcel.getJumpPath()); |
|
|
mvpList.add(poiUtilCell); |
|
|
mvpList.add(poiUtilCell); |
|
|
} |
|
|
} |
|
|