正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -993,7 +993,7 @@ public class ExcelUtil<T> | @@ -993,7 +993,7 @@ public class ExcelUtil<T> | ||
| 993 | { | 993 | { |
| 994 | // 创建cell | 994 | // 创建cell |
| 995 | cell = row.createCell(column); | 995 | cell = row.createCell(column); |
| 996 | - if (isSubListValue(vo) && attr.needMerge()) | 996 | + if (isSubListValue(vo) && getListCellValue(vo).size() > 1 && attr.needMerge()) |
| 997 | { | 997 | { |
| 998 | CellRangeAddress cellAddress = new CellRangeAddress(subMergedFirstRowNum, subMergedLastRowNum, column, column); | 998 | CellRangeAddress cellAddress = new CellRangeAddress(subMergedFirstRowNum, subMergedLastRowNum, column, column); |
| 999 | sheet.addMergedRegion(cellAddress); | 999 | sheet.addMergedRegion(cellAddress); |
-
请 注册 或 登录 后发表评论