30 lines
775 B
Python
30 lines
775 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
@Module: hrbp.oa.work_overtime.reporter
|
|
@FileName: reporter.py
|
|
@Author: 小布丁
|
|
@CreateTime: 2026-08-05 21:35
|
|
@Description: 加班流程报告模块,生成审批报告
|
|
@Version: 1.0.0
|
|
"""
|
|
|
|
from typing import Any, Dict, List
|
|
|
|
|
|
def generate_report(results: List[Dict[str, Any]]) -> str:
|
|
"""
|
|
根据校验结果生成加班审批报告。
|
|
|
|
TODO: 按实际报告格式完善(与请假报告不同,含加班时长等字段)。
|
|
|
|
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)
|