This commit is contained in:
Leo
2026-02-06 20:25:03 +08:00
parent e63ff7522e
commit c1484ecbfd
2 changed files with 24 additions and 1 deletions

View File

@@ -598,9 +598,16 @@ public class TencentDocServiceImpl implements ITencentDocService {
continue;
}
String sid = props.getString("sheetId");
if (sheetId.equals(sid) && props.containsKey("rowTotal")) {
if (!sheetId.equals(sid)) {
continue;
}
// rowTotal 可能为 rowTotal 或 row_total
if (props.containsKey("rowTotal")) {
return Math.max(0, props.getIntValue("rowTotal"));
}
if (props.containsKey("row_total")) {
return Math.max(0, props.getIntValue("row_total"));
}
}
return 0;
} catch (Exception e) {