This commit is contained in:
2025-11-07 15:59:52 +08:00
parent 4430351e69
commit d1a1100064

View File

@@ -262,9 +262,11 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS
log.info("开始执行批量同步...");
// 从 Redis 读取配置信息(用户通过前端配置页面设置)
String fileId = redisCache.getCacheObject("tendoc:config:fileId");
String sheetId = redisCache.getCacheObject("tendoc:config:sheetId");
Integer startRow = redisCache.getCacheObject("tendoc:config:startRow");
// 注意:使用与 TencentDocConfigController 相同的 key 前缀
final String CONFIG_KEY_PREFIX = "tencent:doc:auto:config:";
String fileId = redisCache.getCacheObject(CONFIG_KEY_PREFIX + "fileId");
String sheetId = redisCache.getCacheObject(CONFIG_KEY_PREFIX + "sheetId");
Integer startRow = redisCache.getCacheObject(CONFIG_KEY_PREFIX + "startRow");
if (startRow == null) {
startRow = 3; // 默认值