Browse Source

修复导出包含空子列表数据异常的问题

pull/416/head
RuoYi 2 years ago
parent
commit
67f2ba2aa9
  1. 15
      ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java

15
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java

@ -694,12 +694,19 @@ public class ExcelUtil<T>
// 得到导出对象.
T vo = (T) list.get(i);
Collection<?> subList = null;
if (isSubListValue(vo))
if (isSubList())
{
subList = getListCellValue(vo);
subMergedLastRowNum = subMergedLastRowNum + subList.size();
if (isSubListValue(vo))
{
subList = getListCellValue(vo);
subMergedLastRowNum = subMergedLastRowNum + subList.size();
}
else
{
subMergedFirstRowNum++;
subMergedLastRowNum++;
}
}
int column = 0;
for (Object[] os : fields)
{

Loading…
Cancel
Save