fix: 修正工龄计算字段引用以确保准确性
- 在add_history函数中将工龄计算字段从“参加工作时间”更新为“入职时间”,以确保计算逻辑的准确性 - 优化历史记录更新逻辑,提升数据一致性
This commit is contained in:
parent
ec3782fbdd
commit
6aede80023
2
main.py
2
main.py
@ -304,7 +304,7 @@ def add_history(History_pd, row, promote):
|
||||
for rule in Rule_Level:
|
||||
if row["入职时间"] < rule["start"]:
|
||||
History_pd.loc[len(History_pd),["变动后时间","变动原因"]] = [rule["start"], "工资调标"]
|
||||
calctime = row["参加工作时间"]
|
||||
calctime = row["入职时间"]
|
||||
while True:
|
||||
calctime += relativedelta(years=1)
|
||||
if calctime > NOWTIME:
|
||||
|
Loading…
x
Reference in New Issue
Block a user