Commit 51d245f4311ff9f9113c3bc89f48aa957963f484
1 parent
06436b7c42
Exists in
master
and in
1 other branch
code update
Showing 1 changed file with 7 additions and 7 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java
View file @
51d245f
... | ... | @@ -60,15 +60,15 @@ |
60 | 60 | String keyName = ""; |
61 | 61 | while (ite.hasNext()) |
62 | 62 | { |
63 | - | |
64 | - keyName = ite.next(); | |
65 | - keyName = columName.get(keyName); | |
66 | - ws.addCell(new Label(j, 0, keyName, wcf)); | |
67 | - j++; | |
68 | - if (j > 5 && j < 13) | |
63 | + if (j < 5 || j > 13) | |
69 | 64 | { |
70 | - continue; | |
65 | + keyName = ite.next(); | |
66 | + keyName = columName.get(keyName); | |
67 | + ws.addCell(new Label(j, 0, keyName, wcf)); | |
71 | 68 | } |
69 | + | |
70 | + j++; | |
71 | + | |
72 | 72 | } |
73 | 73 | ws.mergeCells(5, 0, 5, 0); |
74 | 74 |