feat(workflows): 新增HR发起状态核查及发起日期回填逻辑

新增通过HR系统运行中流程及签署记录核查改签发起状态,未发起的保留待办;新增推送表发起日期回填功能,同时优化名单表和AI表的数据结构,完善注释说明。
This commit is contained in:
2026-10-13 09:01:22 +08:00
parent 332b5b9271
commit 0b42fdab56
2 changed files with 137 additions and 23 deletions
@@ -84,9 +84,10 @@ def _find_push_table(today=None):
path = os.path.join(
PUSH_DIR, f"{today:%Y%m} {PUSH_TABLE_PREFIX}{today:%m%d}.xlsx")
if not os.path.exists(path):
cands = sorted(
(f for f in os.listdir(PUSH_DIR) if f.startswith(f"20{PUSH_TABLE_PREFIX}")),
reverse=True)
# 文件名格式 {YYYYMM} 每日推送调动改签名单{MMDD}.xlsx,按名倒序取最近
pat = re.compile(rf"20\d{{4}} {re.escape(PUSH_TABLE_PREFIX)}\d{{4}}\.xlsx")
cands = sorted((f for f in os.listdir(PUSH_DIR) if pat.fullmatch(f)),
reverse=True)
if not cands:
raise FileNotFoundError(f"{PUSH_DIR} 下找不到「{PUSH_TABLE_PREFIX}」推送表")
path = os.path.join(PUSH_DIR, cands[0])