修改导入的数据表名称bug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mingsheng.li 2025-07-28 21:58:57 +08:00
parent f1b24c6a7b
commit 7fcc377a27

View File

@ -153,7 +153,7 @@ class DbfToPostgresCtllogPipeline(BasePipeline):
if len(batch_data) >= batch_size:
# todo本地调试先注释掉
self.db.execute_batch(
"INSERT INTO current_states (created, control_group_controller_id, point_id, real_value) VALUES (%s, %s, %s, %s)",
"INSERT INTO controller_log (created, control_group_controller_id, point_id, real_value) VALUES (%s, %s, %s, %s)",
batch_data
)
# todo本地调试先注释掉
@ -169,7 +169,7 @@ class DbfToPostgresCtllogPipeline(BasePipeline):
if batch_data:
# todo本地调试先注释掉
self.db.execute_batch(
"INSERT INTO current_states (created, control_group_controller_id, point_id, real_value) VALUES (%s, %s, %s, %s)",
"INSERT INTO controller_log (created, control_group_controller_id, point_id, real_value) VALUES (%s, %s, %s, %s)",
batch_data
)
# todo本地调试先注释掉