[Build 1.2.1] fix: 修正职位规则读取逻辑以适应新数据格式
- 修改读取晋升级别和档次的列索引,从A:B调整为B:C,以确保正确获取数据 - 确保职位规则的处理逻辑与最新的数据结构保持一致
This commit is contained in:
parent
36f6fd949c
commit
7629dae36d
2
main.py
2
main.py
@ -76,7 +76,7 @@ while True: # 名称变化
|
||||
|
||||
# 读取职位对应的级别限制
|
||||
Level_Limit_tmp = pd.read_excel("原数据.xlsx", sheet_name="职位规则", usecols="A:A", skiprows=2, names=["limit"])
|
||||
Promote_Level_tmp = pd.read_excel("原数据.xlsx", sheet_name="职位规则", usecols="A:B", skiprows=2, names=["级别","档次"])
|
||||
Promote_Level_tmp = pd.read_excel("原数据.xlsx", sheet_name="职位规则", usecols="B:C", skiprows=2, names=["级别","档次"])
|
||||
Level_Limit = {}
|
||||
Promote_Level = {}
|
||||
for rule in Rule_Role:
|
||||
|
Loading…
x
Reference in New Issue
Block a user