1、导出任务树调整最大列宽

This commit is contained in:
2025-12-22 11:02:40 +08:00
parent 6c777e5342
commit c7052e0b7e
2 changed files with 3 additions and 3 deletions

View File

@@ -720,7 +720,7 @@ public class ExcelUtil {
// 计算列宽:字符数 × 256POI列宽单位 + 边距2000
// 256 = 1个字符宽度2000 = 边距(可根据需求调整)
int columnWidth = Math.min(maxLength * 256 + 2000, 65535); // 最大列宽不超过65535
int columnWidth = Math.min(maxLength * 256 + 2000, 65280); // 最大列宽不超过65535
sheet.setColumnWidth(columnIndex, columnWidth);
}
}