update exportdata

This commit is contained in:
2025-09-03 21:41:11 +08:00
parent 41beb2ec33
commit 7d35766a09
13 changed files with 734 additions and 91 deletions

View File

@@ -193,7 +193,7 @@ class KLineUpdater:
# 预处理数据
processed_data = self.preprocess_quote_data(quote_data, float_share)
if not processed_data:
self.logger.error("没有有效数据需要保存")
self.logger.error(f"没有有效数据需要保存,表:{table_name}")
return False
# 动态生成SQL插入语句
@@ -252,7 +252,7 @@ class KLineUpdater:
self.logger.info(f"创建了新表: {table_name}")
affected_rows = db.execute_many(insert_sql, processed_data)
self.logger.info(f"成功插入/更新 {affected_rows} 条行情记录到表 {table_name}")
# self.logger.info(f"成功插入/更新 {affected_rows} 条行情记录到表 {table_name}")
return True
except Exception as e:
self.logger.error(f"保存行情数据到表 {table_name} 失败: {str(e)}")