This commit is contained in:
2025-11-07 15:48:43 +08:00
parent ea29e2c551
commit 7b7f8de2de

View File

@@ -257,13 +257,19 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS
try {
log.info("开始执行批量同步...");
// 获取配置信息
String fileId = tencentDocConfig.getFileId();
String sheetId = tencentDocConfig.getSheetId();
Integer startRow = tencentDocConfig.getStartRow();
// 从 Redis 读取配置信息(用户通过前端配置页面设置)
String fileId = redisCache.getCacheObject("tendoc:config:fileId");
String sheetId = redisCache.getCacheObject("tendoc:config:sheetId");
Integer startRow = redisCache.getCacheObject("tendoc:config:startRow");
if (startRow == null) {
startRow = 3; // 默认值
}
log.info("读取配置 - fileId: {}, sheetId: {}, startRow: {}", fileId, sheetId, startRow);
if (StringUtils.isEmpty(fileId) || StringUtils.isEmpty(sheetId)) {
log.error("腾讯文档配置不完整,无法执行批量同步");
log.error("腾讯文档配置不完整,无法执行批量同步。请先在前端配置页面设置文件ID和工作表ID");
return;
}