This commit is contained in:
2025-11-06 11:25:17 +08:00
parent a7f581bdbe
commit 0b6ba14f2f
2 changed files with 481 additions and 2 deletions

View File

@@ -502,8 +502,10 @@ public class TencentDocController extends BaseController {
startRow = headerRow + 1; // 默认从表头下一行开始
}
// 计算读取范围:从起始行开始,读取足够多的行假设每次最多处理200行
int endRow = startRow + 200; // 每次最多读取200行
// 计算读取范围:从起始行开始,读取足够多的行
// 根据官方文档限制查询范围行数≤1000列数≤200总单元格≤10000
// 为了避免超出表格实际范围A1表示法的range不能超出实际数据区域每次只读取50行
int endRow = startRow + 49; // 每次最多读取50行包含起始行
log.info("开始填充物流链接 - 文件ID: {}, 工作表ID: {}, 起始行: {}, 结束行: {}, 上次最大行: {}",
fileId, sheetId, startRow, endRow, lastMaxRow);