feat: HRBP OA 人事审批服务包(请假/加班流程框架)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@Module: hrbp.oa.leave.reporter
|
||||
@FileName: reporter.py
|
||||
@Author: 小布丁
|
||||
@CreateTime: 2026-08-05 17:11
|
||||
@Description: 请假流程报告模块,生成审批报告
|
||||
@Version: 1.1.0
|
||||
"""
|
||||
|
||||
from typing import Any, Dict, List
|
||||
|
||||
|
||||
def generate_report(results: List[Dict[str, Any]]) -> str:
|
||||
"""
|
||||
根据校验结果生成请假审批报告。
|
||||
|
||||
TODO: 按实际报告格式完善(导出 Excel/文件等)。
|
||||
|
||||
Args:
|
||||
results: validate_doc 返回的校验结果列表
|
||||
|
||||
Returns:
|
||||
报告文本
|
||||
"""
|
||||
lines = ["请假审批报告", "=" * 30]
|
||||
for r in results:
|
||||
lines.append(f"{r.get('creator', '')} | {r.get('title', '')} | {r.get('decision', '')}")
|
||||
return "\n".join(lines)
|
||||
Reference in New Issue
Block a user