diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/reportexcel/util/XlsSheetUtil.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/reportexcel/util/XlsSheetUtil.java index 2c902dfd..ed86901a 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/reportexcel/util/XlsSheetUtil.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/reportexcel/util/XlsSheetUtil.java @@ -49,11 +49,12 @@ public class XlsSheetUtil { Map> cellMap = cellGroup(cells_json); //循环每一行 // 样式创建放到循环外层,防止样式过多,超出excel最大样式限制 - CellStyle style = wb.createCellStyle(); + // CellStyle style = wb.createCellStyle(); for (Integer r : cellMap.keySet()) { Row row = sheet.createRow(r); //循环每一列 for (JSONObject col : cellMap.get(r)) { + CellStyle style = wb.createCellStyle(); createCell(wb, sheet, row, col,style); } }