非标业绩提报增加字段

This commit is contained in:
z66
2025-10-27 15:43:35 +08:00
parent bfb905f91e
commit 80ab4019c8
5 changed files with 146 additions and 20 deletions
+3 -1
View File
@@ -105,10 +105,12 @@ class UpdateNGVData:
# all_data = [self.row_to_dict(row, self.field_mapping) for index, row in data_NGV_j1.iterrows()] # 前两天的全部数据
# all_data = [self.row_to_dict(row, self.field_mapping) for index, row in data_NGV_j.iterrows()] # 前一天的全部数据
all_data = [self.row_to_dict(row, self.field_mapping) for index, row in filtered_df.iterrows()] # 增量数据
try:
filtered_df.to_csv(output_dir + "\\" + f"{task_start_time}NGV.csv")
filtered_df.to_csv(os.path.join(output_dir, f"{task_start_time}NGV.csv"))
except Exception as e:
error_task_logger.error(f"NGV过滤后数据保存异常: {e}")
pass
#
data = {'api_key': Config.SaaS_Tasks_APP_ID, 'entry_id': Config.NGV_TASKS_ENTRY_ID, "data_list": all_data}