From 980d3e1f2538c946aa75dad9795088e1752858ba Mon Sep 17 00:00:00 2001 From: liquanyu Date: Tue, 20 Nov 2018 14:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E5=9B=B4=E4=BA=A7=E5=84=BF?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/platform/common/utils/ExcelUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java b/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java index 9e771cc..daecc3c 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java +++ b/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java @@ -461,7 +461,7 @@ public class ExcelUtil ws.addCell(label1); int arrayIndex = 0; - for (int i = 6, len = values.size()+6; i < len; i++, arrayIndex++) + for (int i = 5, len = values.size()+5; i < len; i++, arrayIndex++) { Set sets = values.get(arrayIndex).keySet(); @@ -488,14 +488,14 @@ public class ExcelUtil int arrayIndex1 = 0; - for (int i = 5, len = values.size()+5; i < len; i++, arrayIndex1++) + for (int i = 4, len = qkValues.size()+4; i < len; i++, arrayIndex1++) { - Set sets = values.get(arrayIndex1).keySet(); + Set sets = qkValues.get(arrayIndex1).keySet(); int j = 13; for (String key : sets) { - String value = values.get(arrayIndex1).get(key); + String value = qkValues.get(arrayIndex1).get(key); if (StringUtils.isNotEmpty(value) && StringUtils.isNum(value)) { WritableCellFormat wcfN = new WritableCellFormat(contentFont); -- 1.8.3.1