Commit 5460e796 authored by Administrator's avatar Administrator

修改了下载交接单的方法

parent 410c74c6
......@@ -844,7 +844,7 @@ public class UserApi {
cell.setCellValue(receiptListEntity1.getBoxCount());
cell.setCellStyle(style);
row = sheet.createRow(receiptListEntity.size() + i);// 行之后开始创建
row = sheet.createRow(receiptListEntity.size() + 2);// 行之后开始创建
row.setHeightInPoints(Short.parseShort("16"));//设置行高
//创建单元格并且添加数据
cell = row.createCell(0);
......@@ -855,7 +855,7 @@ public class UserApi {
cell.setCellValue("");
cell.setCellStyle(style);
}
CellRangeAddress callRangeAddress0=new CellRangeAddress(receiptListEntity.size() + i+2, receiptListEntity.size() + i+2, 1, 5);
CellRangeAddress callRangeAddress0=new CellRangeAddress(receiptListEntity.size() +2, receiptListEntity.size() +2, 1, 5);
sheet.addMergedRegion(callRangeAddress0);
cell = row.createCell(6);
cell.setCellValue("邮局签字:");
......@@ -865,10 +865,10 @@ public class UserApi {
cell.setCellValue(" ");
cell.setCellStyle(style);
}
CellRangeAddress callRangeAddress1=new CellRangeAddress(receiptListEntity.size() + i+2, receiptListEntity.size() + i+2, 7, 12);
CellRangeAddress callRangeAddress1=new CellRangeAddress(receiptListEntity.size() +2, receiptListEntity.size() +2, 7, 12);
sheet.addMergedRegion(callRangeAddress1);
row = sheet.createRow(receiptListEntity.size() + 1 + i);// 行之后开始创建
row = sheet.createRow(receiptListEntity.size() +3);// 行之后开始创建
row.setHeightInPoints(Short.parseShort("16"));//设置行高
//创建单元格并且添加数据
cell = row.createCell(0);
......@@ -879,7 +879,7 @@ public class UserApi {
cell.setCellValue("");
cell.setCellStyle(style);
}
CellRangeAddress callRangeAddress2=new CellRangeAddress(receiptListEntity.size() + i+3, receiptListEntity.size() + i+3, 1, 12);
CellRangeAddress callRangeAddress2=new CellRangeAddress(receiptListEntity.size() +3, receiptListEntity.size() +3, 1, 12);
sheet.addMergedRegion(callRangeAddress2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment