从接口拿行数

This commit is contained in:
van
2026-03-01 00:04:24 +08:00
parent 4c07dda3d7
commit 0b0b431e95
5 changed files with 48 additions and 140 deletions

View File

@@ -99,12 +99,13 @@ public interface ITencentDocService {
JSONObject getSheetList(String accessToken, String fileId);
/**
* 获取指定工作表的 rowTotal文档信息接口返回直接用于 range 上限
* 获取指定工作表的行数(优先返回 rowCount-实际有数据的行数,其次 rowTotal
* 用于替代 Redis 上次记录的行数,决定批量填充的操作范围
*
* @param accessToken 访问令牌
* @param fileId 文件ID
* @param sheetId 工作表ID
* @return rowTotal未找到或解析失败返回 0
* @return rowCount/rowTotal未找到或解析失败返回 0
*/
int getSheetRowTotal(String accessToken, String fileId, String sheetId);