diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jarvis/TencentDocController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jarvis/TencentDocController.java index 8c54316..53fcbbb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jarvis/TencentDocController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jarvis/TencentDocController.java @@ -2137,8 +2137,8 @@ public class TencentDocController extends BaseController { int skippedCount = 0; int errorCount = 0; - // 分批读取数据,每批500行(API 行数≤1000,列数≤200) - final int BATCH_SIZE = 500; + // 分批读取数据,接口单次只能读 200 行 + final int BATCH_SIZE = 200; int currentStartRow = startRow; int totalBatches = (int) Math.ceil((double)(endRow - startRow + 1) / BATCH_SIZE); int currentBatch = 0; @@ -2436,8 +2436,8 @@ public class TencentDocController extends BaseController { int errorCount = 0; // 错误数量 java.util.List updatedOrderNos = new java.util.ArrayList<>(); // 更新的单号列表 - // 分批读取数据,每批500行(API 行数≤1000,列数≤200) - final int BATCH_SIZE = 500; + // 分批读取数据,接口单次只能读 200 行 + final int BATCH_SIZE = 200; int currentStartRow = startRow; int totalBatches = (int) Math.ceil((double)(endRow - startRow + 1) / BATCH_SIZE); int currentBatch = 0; diff --git a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java index 69c0d3f..5d4206b 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java @@ -292,7 +292,7 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS "AUTO", "DELAYED_TIMER", startRow, - startRow + 499 // 与 Controller API_MAX_ROWS_PER_REQUEST=500 一致(单批最多500行) + startRow + 199 // 接口单次只能读 200 行 ); log.info("✓ 创建批量推送记录,批次ID: {}", batchId);