Commit a92d9153 authored by 王国存's avatar 王国存

空间查询导出优化

parent 7f2540dd
......@@ -34,17 +34,17 @@ public class ExcelUtil {
HSSFCell cell = null;
int i;
for(i = 0; i < title.length; ++i) {
for(i = 0; i < title.length; i++) {
cell = row.createCell(i);
cell.setCellValue(title[i]);
cell.setCellStyle(style);
sheet.setColumnWidth(i, width[i]);
}
for(i = 0; i < values.length; ++i) {
for(i = 0; i < values.length; i++) {
row = sheet.createRow(i + 1);
for(int j = 0; j < values[i].length; ++j) {
for(int j = 0; j < values[i].length; j++) {
row.createCell(j).setCellValue(values[i][j]);
}
}
......
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