From bfb905f91e59ce11857df85733b63d641f3245d2 Mon Sep 17 00:00:00 2001
From: z66 <1415243231@qq.com>
Date: Sat, 25 Oct 2025 11:03:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=9B=9E=E8=AE=BF=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/csv-editor.xml | 35 ----------------------------
back_ground_module/Exception_Task.py | 7 +++++-
2 files changed, 6 insertions(+), 36 deletions(-)
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)