修复sheet超出最大行数异常问题(I5YQ7Z)

pull/281/head
RuoYi 2 years ago
parent f2320d356d
commit d936ce76b1

@ -562,7 +562,7 @@ public class ExcelUtil<T>
int rowNo = (1 + rownum) - startNo; int rowNo = (1 + rownum) - startNo;
for (int i = startNo; i < endNo; i++) for (int i = startNo; i < endNo; i++)
{ {
rowNo = i > 1 ? rowNo + 1 : rowNo + i; rowNo = isSubList() ? (i > 1 ? rowNo + 1 : rowNo + i) : i + 1 + rownum - startNo;
row = sheet.createRow(rowNo); row = sheet.createRow(rowNo);
// 得到导出对象. // 得到导出对象.
T vo = (T) list.get(i); T vo = (T) list.get(i);

Loading…
Cancel
Save