This commit is contained in:
parent
f1b24c6a7b
commit
7fcc377a27
|
|
@ -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:本地调试先注释掉
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user