mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复RowUtil传入参数错误问题
This commit is contained in:
@@ -126,7 +126,7 @@ public class RowUtil {
|
||||
return;
|
||||
}
|
||||
// 插入位置的行,如果插入的行不存在则创建新行
|
||||
Row sourceRow = Optional.ofNullable(sheet.getRow(startRow)).orElseGet(() -> sheet.createRow(insertNumber));
|
||||
Row sourceRow = getOrCreateRow(sheet, startRow);
|
||||
// 从插入行开始到最后一行向下移动
|
||||
sheet.shiftRows(startRow, sheet.getLastRowNum(), insertNumber, true, false);
|
||||
|
||||
|
Reference in New Issue
Block a user