Files
37duAutomation/app/service/hrbp/oa/work_overtime/overtime_approval.py
T

23 lines
789 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
"""
@Module: hrbp.oa.work_overtime.overtime_approval
@FileName: overtime_approval.py
@Author: 小布丁
@CreateTime: 2026-08-05 21:22
@Description: 加班审批流程入口(审批引擎见 common/approval_flow.py,校验规则见 validator.py,报告见 reporter.py)
@Version: 1.4.0
"""
from app.service.hrbp.oa.common.approval_flow import run_flow
from app.service.hrbp.oa.work_overtime.validator import validate_doc
from app.service.hrbp.oa.work_overtime.reporter import generate_report
def main() -> None:
"""加班审批:登录 -> 查待办 -> 解析SSO -> 获取表单 -> 校验 -> 报告"""
run_flow(subject="加班", validate_doc=validate_doc, generate_report=generate_report)
if __name__ == "__main__":
main()