Commit 536f2eb24e43809e96a074dd5dc3914a591a5c12
1 parent
51d245f431
Exists in
master
and in
8 other branches
code update
Showing 1 changed file with 8 additions and 14 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java
View file @
536f2eb
... | ... | @@ -55,22 +55,16 @@ |
55 | 55 | { |
56 | 56 | ws.setColumnView(j, 15); |
57 | 57 | } |
58 | - Iterator<String> ite = columName.keySet().iterator(); | |
59 | - int j = 0; | |
60 | - String keyName = ""; | |
61 | - while (ite.hasNext()) | |
62 | - { | |
63 | - if (j < 5 || j > 13) | |
64 | - { | |
65 | - keyName = ite.next(); | |
66 | - keyName = columName.get(keyName); | |
67 | - ws.addCell(new Label(j, 0, keyName, wcf)); | |
68 | - } | |
69 | 58 | |
70 | - j++; | |
59 | + ws.addCell(new Label(0, 0, "aaaa", wcf)); | |
60 | + ws.addCell(new Label(0, 0, "aaaa", wcf)); | |
61 | + ws.addCell(new Label(0, 0, "aaaa", wcf)); | |
62 | + ws.addCell(new Label(0, 0, "aaaa", wcf)); | |
63 | + ws.addCell(new Label(0, 0, "aaaa", wcf)); | |
64 | + ws.addCell(new Label(5, 0, "标题", wcf)); | |
71 | 65 | |
72 | - } | |
73 | - ws.mergeCells(5, 0, 5, 0); | |
66 | + | |
67 | + ws.mergeCells(5, 0, 12, 0); | |
74 | 68 | |
75 | 69 | // // 填充数据的内容 |
76 | 70 | // Map<String, Object> map; |