Browse Source

优化导出功能

zhouxianguang 6 years atrás
parent
commit
e45857018f

+ 3 - 3
rankin-cms-web/src/main/java/cn/rankin/cmsweb/controller/stmt/StmtTerminalUserController.java

@@ -110,12 +110,12 @@ public class StmtTerminalUserController
         //设置单元格宽度
         sheet.setColumnWidth(0, 20 * 256);
         sheet.setColumnWidth(1, 10 * 256);
-        sheet.setColumnWidth(2, 10 * 256);
+        sheet.setColumnWidth(2, 30 * 256);
         sheet.setColumnWidth(3, 30 * 256);
         sheet.setColumnWidth(4, 10 * 256);
-        sheet.setColumnWidth(5, 15 * 256);
+        sheet.setColumnWidth(5, 30 * 256);
         sheet.setColumnWidth(6, 15 * 256);
-        sheet.setColumnWidth(7, 50 * 256);
+        sheet.setColumnWidth(7, 15 * 256);
         //在sheet里创建第一行,参数为行索引(excel的行),可以是0~65535之间的任何一个
         HSSFRow row1 = sheet.createRow(0);
         //创建单元格并设置单元格内容