From 6c17cac744b3b439e38f6998ce4704c9a01c5dd2 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 07 四月 2025 11:30:31 +0800 Subject: [PATCH] bug修改 --- medicalWaste-system/src/main/java/com/sinata/system/config/AutoColumnWidthStrategy.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/medicalWaste-system/src/main/java/com/sinata/system/config/AutoColumnWidthStrategy.java b/medicalWaste-system/src/main/java/com/sinata/system/config/AutoColumnWidthStrategy.java index 0a8623c..a1b9134 100644 --- a/medicalWaste-system/src/main/java/com/sinata/system/config/AutoColumnWidthStrategy.java +++ b/medicalWaste-system/src/main/java/com/sinata/system/config/AutoColumnWidthStrategy.java @@ -20,8 +20,8 @@ if (needSetWidth) { Map<Integer, Integer> maxWidthMap = cache.computeIfAbsent(writeSheetHolder.getSheetNo(), k -> new HashMap<>()); int columnWidth = calculateWidth(cellDataList, cell, isHead); - if (columnWidth >= 16) { - columnWidth = 16; + if (columnWidth >= 17) { + columnWidth = 17; } if (columnWidth > 0) { columnWidth = Math.min(columnWidth, 255); // 最大支持255字符 -- Gitblit v1.7.1