From 4def3c7dc68bd0f052420f76d0f46a218454e970 Mon Sep 17 00:00:00 2001 From: mxr612 Date: Mon, 9 Jun 2025 15:56:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E8=BF=9B=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BB=A5=E5=A2=9E=E5=BC=BA=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新异常信息,包含“晋级起始”、“晋档起始”、“晋级间隔”和“晋档间隔”字段的格式错误提示 - 确保在处理数据时,能够更清晰地识别时间格式问题 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7713e09..3819fb9 100644 --- a/main.py +++ b/main.py @@ -259,7 +259,7 @@ for index, row in BaseData.iterrows(): break History_pd.loc[len(History_pd)] = [calctime, "", "", "", "", "", "五年晋级"] except: - raise Exception(f"晋级、档起始时间格式错误:{row['晋档起始']}或{row['晋级起始']}") + raise Exception(f"晋级、档起始或间隔时间格式错误:{row['晋级起始']}-{row['晋档起始']}-{row['晋级间隔']}-{row['晋档间隔']}") for rule in Rule_Level: # 工资调标 if row["入职时间"] < rule["start"]: History_pd.loc[len(History_pd)] = [rule["start"], "", "", "", "", "", "工资调标"]