refactor: 重构审批流程与依赖,新增社保异动模块
1. 新增社保增减名单模块,支持参保/停保名单导出 2. 重构钉钉推送逻辑,先推摘要再按需推送完整报告 3. 优化假期/加班校验的天数比对逻辑,适配半天请假场景 4. 重写排班HTML解析器,兼容新的页面结构并提取班次全称 5. 重构审批报告生成逻辑,新增全量明细展示 6. 重构影刀脚本的日志与依赖管理,新增UI自动化聚焦输入框 7. 更新依赖包,新增uiautomation库支持
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
import math
|
||||
from typing import Any, Dict, List, Tuple
|
||||
|
||||
from app.utils.logger import get_logger
|
||||
@@ -174,7 +175,9 @@ def validate_doc(doc: Dict[str, Any], session: Any) -> Dict[str, Any]:
|
||||
leave_info["实际上班天数"] = actual_work_days
|
||||
leave_info["填报天数"] = fill_days
|
||||
|
||||
days_mismatch = abs(actual_work_days - fill_days) > 0.01
|
||||
# 请半天假(0.5天)仍占用1个排班上班日,故用向上取整比对:
|
||||
# 0.5天->1个工作日,1.0天->1个工作日,1.5天->2个工作日
|
||||
days_mismatch = actual_work_days != math.ceil(round(fill_days, 2))
|
||||
|
||||
# ========== 根据假期类型分支处理 ==========
|
||||
|
||||
|
||||
Reference in New Issue
Block a user