|
@@ -149,6 +149,25 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
iterator.remove();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ List<TInvoiceWorkcontent> newWorkcontentList = new ArrayList<>();
|
|
|
+ //多个工作类型拆分成多条数据
|
|
|
+ for (TInvoiceWorkcontent t: tInvoiceWorkcontentList
|
|
|
+ ) {
|
|
|
+ String[] wtArr=t.getWorkType().split(",");
|
|
|
+ if (wtArr.length > 1) {
|
|
|
+ for (int i = 0; i < wtArr.length; i++) {
|
|
|
+ TInvoiceWorkcontent arrItem = new TInvoiceWorkcontent();
|
|
|
+ arrItem = t;
|
|
|
+ arrItem.setWorkType(wtArr[i]);
|
|
|
+ newWorkcontentList.add(arrItem);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ newWorkcontentList.add(t);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
SXSSFWorkbook wb = new SXSSFWorkbook(1000);
|
|
|
CellStyle wrapStyle = wb.createCellStyle();
|
|
|
wrapStyle.setWrapText(true); //设置自动换行
|
|
@@ -193,12 +212,20 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
row0.createCell(10).setCellValue("变更原因");row0.getCell(10).setCellStyle(style);
|
|
|
row0.createCell(11).setCellValue("作业是否取消");row0.getCell(11).setCellStyle(style);
|
|
|
row0.createCell(12).setCellValue("取消原因");row0.getCell(12).setCellStyle(style);
|
|
|
+ row0.createCell(13).setCellValue("装置批准人");row0.getCell(13).setCellStyle(style);
|
|
|
+ row0.createCell(14).setCellValue("用户单位");row0.getCell(14).setCellStyle(style);
|
|
|
+ row0.createCell(15).setCellValue("用户主管");row0.getCell(15).setCellStyle(style);
|
|
|
+ row0.createCell(16).setCellValue("危害工作许可证号");row0.getCell(16).setCellStyle(style);
|
|
|
+ row0.createCell(17).setCellValue("动火作业许可证号");row0.getCell(17).setCellStyle(style);
|
|
|
+ row0.createCell(18).setCellValue("危害工作许可证号");row0.getCell(18).setCellStyle(style);
|
|
|
+ row0.createCell(19).setCellValue("限制空间许可证号");row0.getCell(19).setCellStyle(style);
|
|
|
+ row0.createCell(20).setCellValue("盲板作业许可证号");row0.getCell(20).setCellStyle(style);
|
|
|
//填充数据
|
|
|
int rowIndex = 1;
|
|
|
int columnIndex = 1;
|
|
|
StringBuilder contentUserWorkType=new StringBuilder();
|
|
|
String cuw="";
|
|
|
- for (TInvoiceWorkcontent t: tInvoiceWorkcontentList) {
|
|
|
+ for (TInvoiceWorkcontent t: newWorkcontentList) {
|
|
|
if(t.getBookingworkticket().getStatus()!=3){
|
|
|
continue;
|
|
|
}
|
|
@@ -248,6 +275,24 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
row.createCell(11).setCellValue("否");
|
|
|
//
|
|
|
row.createCell(12).setCellValue("");
|
|
|
+ //装置批准人
|
|
|
+ row.createCell(13).setCellValue(t.getBookingworkticket().getContact());
|
|
|
+ //用户单位
|
|
|
+ row.createCell(14).setCellValue(t.getBookingworkticket().getUserUnit());
|
|
|
+ //用户主管
|
|
|
+ row.createCell(15).setCellValue(t.getBookingworkticket().getUserMg());
|
|
|
+ //危害工作许可证号
|
|
|
+ row.createCell(16).setCellValue(t.getWhgzxkzh());
|
|
|
+ //动火作业许可证号
|
|
|
+ row.createCell(17).setCellValue(t.getDhzyxkzh());
|
|
|
+ //限制空间许可证号
|
|
|
+ row.createCell(18).setCellValue(t.getXzkjxkzh());
|
|
|
+ //盲板作业许可证号
|
|
|
+ row.createCell(19).setCellValue(t.getMbzyxkzh());
|
|
|
+ //高处作业许可证号
|
|
|
+ row.createCell(20).setCellValue(t.getGczyxkzh());
|
|
|
+
|
|
|
+
|
|
|
rowIndex++;
|
|
|
contentUserWorkType.delete(0, contentUserWorkType.length());
|
|
|
}
|
|
@@ -310,7 +355,7 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
int workType15=0; int workType16=0; int workType17=0;
|
|
|
//填充下一个表格
|
|
|
int count=0;
|
|
|
- for (TInvoiceWorkcontent t: tInvoiceWorkcontentList) {
|
|
|
+ for (TInvoiceWorkcontent t: newWorkcontentList) {
|
|
|
if(t.getBookingworkticket().getStatus()!=3){
|
|
|
continue;
|
|
|
}
|