feat(xq0084): 导入前先查工资卡并去重回写(v0.3.0)
This commit is contained in:
@@ -23,8 +23,10 @@ def _push_text(rows, stats, path, hr=None):
|
||||
f"为否 **{stats['trigger'].get('否', 0)}**",
|
||||
]
|
||||
if hr and hr.get("enabled"):
|
||||
lines.append(f"- HR 工资卡导入:成功 **{hr['imported']}**、失败 **{hr['failed']}**、"
|
||||
f"跳过 **{hr['skipped']}**;台账已回写 **{hr['written']}** 条")
|
||||
lines.append(f"- HR 工资卡导入:成功 **{hr.get('imported', 0)}**、"
|
||||
f"失败 **{hr.get('failed', 0)}**、跳过 **{hr.get('skipped', 0)}**、"
|
||||
f"HR 已一致 **{hr.get('existing', 0)}**;"
|
||||
f"台账已回写 **{hr.get('written', 0)}** 条")
|
||||
manual = [r for r in rows if r["conclusion"] == "需人工核实"]
|
||||
if manual:
|
||||
lines.append(f"#### 需人工核实({len(manual)})")
|
||||
|
||||
Reference in New Issue
Block a user