1
This commit is contained in:
@@ -2137,8 +2137,8 @@ public class TencentDocController extends BaseController {
|
|||||||
int skippedCount = 0;
|
int skippedCount = 0;
|
||||||
int errorCount = 0;
|
int errorCount = 0;
|
||||||
|
|
||||||
// 分批读取数据,每批500行(API 行数≤1000,列数≤200)
|
// 分批读取数据,接口单次只能读 200 行
|
||||||
final int BATCH_SIZE = 500;
|
final int BATCH_SIZE = 200;
|
||||||
int currentStartRow = startRow;
|
int currentStartRow = startRow;
|
||||||
int totalBatches = (int) Math.ceil((double)(endRow - startRow + 1) / BATCH_SIZE);
|
int totalBatches = (int) Math.ceil((double)(endRow - startRow + 1) / BATCH_SIZE);
|
||||||
int currentBatch = 0;
|
int currentBatch = 0;
|
||||||
@@ -2436,8 +2436,8 @@ public class TencentDocController extends BaseController {
|
|||||||
int errorCount = 0; // 错误数量
|
int errorCount = 0; // 错误数量
|
||||||
java.util.List<String> updatedOrderNos = new java.util.ArrayList<>(); // 更新的单号列表
|
java.util.List<String> updatedOrderNos = new java.util.ArrayList<>(); // 更新的单号列表
|
||||||
|
|
||||||
// 分批读取数据,每批500行(API 行数≤1000,列数≤200)
|
// 分批读取数据,接口单次只能读 200 行
|
||||||
final int BATCH_SIZE = 500;
|
final int BATCH_SIZE = 200;
|
||||||
int currentStartRow = startRow;
|
int currentStartRow = startRow;
|
||||||
int totalBatches = (int) Math.ceil((double)(endRow - startRow + 1) / BATCH_SIZE);
|
int totalBatches = (int) Math.ceil((double)(endRow - startRow + 1) / BATCH_SIZE);
|
||||||
int currentBatch = 0;
|
int currentBatch = 0;
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS
|
|||||||
"AUTO",
|
"AUTO",
|
||||||
"DELAYED_TIMER",
|
"DELAYED_TIMER",
|
||||||
startRow,
|
startRow,
|
||||||
startRow + 499 // 与 Controller API_MAX_ROWS_PER_REQUEST=500 一致(单批最多500行)
|
startRow + 199 // 接口单次只能读 200 行
|
||||||
);
|
);
|
||||||
log.info("✓ 创建批量推送记录,批次ID: {}", batchId);
|
log.info("✓ 创建批量推送记录,批次ID: {}", batchId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user