fix 导出Excel时设置合并列,指定合并列的第一行数据为null、空字符时导致后续列无法正常合并

This commit is contained in:
zhengyulun 2025-08-26 15:56:37 +08:00
parent b345702705
commit 701a137a68

View File

@ -79,7 +79,6 @@ public class CellMergeHandler {
map.put(field, new RepeatCell(val, i)); map.put(field, new RepeatCell(val, i));
} else { } else {
RepeatCell repeatCell = map.get(field); RepeatCell repeatCell = map.get(field);
cellValue = repeatCell.value();
if (isEmpty(cellValue)) { if (isEmpty(cellValue)) {
// 空值跳过不合并 // 空值跳过不合并
continue; continue;