优化导出对象的子列表判断条件

pull/402/head
RuoYi 2022-08-10 12:47:46 +08:00
parent 8fcc548d34
commit 7aa4872cb9
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ public class ExcelUtil<T>
{
// 创建cell
cell = row.createCell(column);
if (isSubListValue(vo) && attr.needMerge())
if (isSubListValue(vo) && getListCellValue(vo).size() > 1 && attr.needMerge())
{
CellRangeAddress cellAddress = new CellRangeAddress(subMergedFirstRowNum, subMergedLastRowNum, column, column);
sheet.addMergedRegion(cellAddress);