续约待办

This commit is contained in:
z66
2025-11-11 09:21:00 +08:00
parent 9798071f68
commit 8a2c65d76e
6 changed files with 195 additions and 37 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ class CommonModule:
# 创建一个存储日期的集合,用于去重
self.date_set = set()
self.conn = Config.CONN_INFO
self.renewal_conn = Config.CONN_INFO_RENEWAL
def time_to_UTC(self, time_input):
"""
@@ -180,7 +179,7 @@ class CommonModule:
"""
try:
# 获得连接
conn = psycopg2.connect(**self.renewal_conn)
conn = psycopg2.connect(**self.conn)
cursor = conn.cursor()
# 获取指定天数前的日期
@@ -278,6 +278,7 @@ class RenewServicesRevisit:
# 处理字符串数据并显式指定数据类型
data_NGV = data_NGV.apply(replace_values)
# 针对公司主店过期,取公司最高等级版本派发
# 过滤多公司
data_NGV = data_NGV[~data_NGV['id_own_group'].isin(all_filter_company_list)]