diff --git a/.idea/csv-editor.xml b/.idea/csv-editor.xml index a4a5b64..d419f85 100644 --- a/.idea/csv-editor.xml +++ b/.idea/csv-editor.xml @@ -38,41 +38,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/back_ground_module/Exception_Task.py b/back_ground_module/Exception_Task.py index c3ac44a..7e2bc3e 100644 --- a/back_ground_module/Exception_Task.py +++ b/back_ground_module/Exception_Task.py @@ -227,10 +227,15 @@ class NewExceptionTask: try: self.load_all_data() - self.data_yichang_S = common_module.get_yichang_details(days_back=1).astype(str) # 获取data_NGV 并转为str + data = common_module.get_yichang_details(days_back=1) + self.data_yichang_S = pd.DataFrame() if data is None or data.empty else data.astype(str) self.index = self.build_index(self.json_list) logger.info("开始运行SaaS异常回访") + if self.data_yichang_S.empty: + logger.info("未获取到数据或数据为空") + common_module.send_task_status(task_start_time, "异常服务待办派发") + return data_yichang = self.data_yichang_S.copy() # data_yichang.to_csv(os.path.join(output_dir,"data_yichang.csv"), index=False)