异常回访过滤条件上线日期改为开户日
This commit is contained in:
@@ -332,7 +332,7 @@ class NewExceptionTask:
|
|||||||
# 是否生成异常待办
|
# 是否生成异常待办
|
||||||
create_exception = NGV_Data.get("_widget_1758769279995")
|
create_exception = NGV_Data.get("_widget_1758769279995")
|
||||||
# 获取上线日期(文本)
|
# 获取上线日期(文本)
|
||||||
create_date = NGV_Data.get("_widget_1734062123176")
|
create_date = NGV_Data.get("_widget_1734062123081")
|
||||||
break # 找到匹配的数据后退出循环
|
break # 找到匹配的数据后退出循环
|
||||||
|
|
||||||
# 判断门店原因
|
# 判断门店原因
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
-3282
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
|
|||||||
|
import datetime
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
import requests
|
||||||
|
from api import API
|
||||||
|
from back_ground_module import CommonModule
|
||||||
|
import pandas as pd
|
||||||
|
from log_config import configure_task_logger, configure_error_task_logger
|
||||||
|
|
||||||
|
api_instance = API()
|
||||||
|
common_module = CommonModule()
|
||||||
|
# start_time = datetime.datetime.now()
|
||||||
|
|
||||||
|
# 获取已经配置好的常规日志记录器
|
||||||
|
logger = configure_task_logger()
|
||||||
|
|
||||||
|
# 获取已经配置好的错误任务日志记录器
|
||||||
|
error_task_logger = configure_error_task_logger()
|
||||||
|
output_dir = "output" # 设置输出目录
|
||||||
|
os.makedirs(output_dir, exist_ok=True)
|
||||||
|
|
||||||
|
data = common_module.get_yichang_details(days_back=3)
|
||||||
|
|
||||||
|
df = pd.DataFrame(data)
|
||||||
|
df.to_excel(os.path.join(output_dir, "异常待办数据.xlsx"), index=False)
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user