From b9263118c31f2c56f1aa37418151a5d5471e543e Mon Sep 17 00:00:00 2001 From: "mai.jh" Date: Tue, 30 Apr 2019 19:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=8D=E5=8E=86=E5=90=88=E5=B9=B6=E7=9A=84?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=A0=BC=EF=BC=8C=E5=87=BA=E7=8E=B0=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E8=B6=8A=E7=95=8CBug=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../excel/export/template/ExcelExportOfTemplateUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/template/ExcelExportOfTemplateUtil.java b/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/template/ExcelExportOfTemplateUtil.java index 093a131..93a7e60 100644 --- a/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/template/ExcelExportOfTemplateUtil.java +++ b/easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/template/ExcelExportOfTemplateUtil.java @@ -514,9 +514,9 @@ public final class ExcelExportOfTemplateUtil extends BaseExportService { row.createCell(j); CellStyle style = row.getRowNum() % 2 == 0 ? getStyles(false, - size >= j - columnIndex ? null : columns.get(j - columnIndex)) + size <= j - columnIndex ? null : columns.get(j - columnIndex)) : getStyles(true, - size >= j - columnIndex ? null : columns.get(j - columnIndex)); + size <= j - columnIndex ? null : columns.get(j - columnIndex)); //返回的styler不为空时才使用,否则使用Excel设置的,更加推荐Excel设置的样式 if (style != null) { row.getCell(j).setCellStyle(style);