From ab2f1039329448a9eec10dd33dbf70a3fe9ef7d6 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期一, 18 九月 2023 15:13:05 +0800
Subject: [PATCH] 新版excel优化

---
 src/main/java/com/hx/util/ExcelUtil.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/hx/util/ExcelUtil.java b/src/main/java/com/hx/util/ExcelUtil.java
index 57bc636..fbc5df6 100644
--- a/src/main/java/com/hx/util/ExcelUtil.java
+++ b/src/main/java/com/hx/util/ExcelUtil.java
@@ -975,8 +975,9 @@
 				for (int j = 0;j<arrange;j++) {
 					cell = row.getCell(j);
 					if (cell == null) {
-						arrayString.add("");
-					} else if (cell.getCellType() == CellType.NUMERIC) {
+						continue;
+					}
+					if (cell.getCellType() == CellType.NUMERIC) {
 						isData = true;
 						format = cell.getCellStyle().getDataFormat();
 						if (format == 14 || format == 31 || format == 57 || format == 58) {

--
Gitblit v1.8.0