feat: 新增考勤异常模块、银行卡校验、OCR附件检测等功能
1. 新增考勤异常查询与导出模块,支持当月异常拉取、Excel导出、钉钉推送提醒 2. 完善请假/加班流程解析与校验,新增附件下载、OCR核验能力 3. 新增银行卡信息校验模块,支持在职/离职员工工资卡数据核对与异常导出 4. 新增通用OCR工具模块,支持病假/婚假/产检假附件关键词检测与日期提取 5. 新增门店请休假异常名单、银行卡检查等需求文档 6. 重构部分现有模块代码,优化配置与接口调用逻辑 7. 新增测试文件与工具类,完善项目基础能力
This commit is contained in:
@@ -55,7 +55,7 @@ def parse_overtime_form(result: Dict[str, Any]) -> Dict[str, Any]:
|
||||
"加班日期": result.get("ot_date"),
|
||||
"加班开始时间": result.get("start_time"),
|
||||
"加班结束时间": result.get("end_time"),
|
||||
"加班时长(小时)": result.get("ot_hour"),
|
||||
"加班时长(小时)": result.get("ot_hour") or result.get("expect_hour"),
|
||||
"加班天数(天)": result.get("ot_day"),
|
||||
"系统判断加班时长(小时)": result.get("judge_ot_hour"),
|
||||
"系统判断加班天数(天)": result.get("judge_ot_day"),
|
||||
@@ -65,7 +65,9 @@ def parse_overtime_form(result: Dict[str, Any]) -> Dict[str, Any]:
|
||||
# 拼接系统判定的加班时间段
|
||||
judge_start = result.get("judge_start_time")
|
||||
judge_end = result.get("judge_end_time")
|
||||
if judge_start and judge_end:
|
||||
# 接口对未判定场景返回字符串"无数据",需过滤,避免拼出"10:00:00 至 无数据"
|
||||
if (judge_start and judge_end
|
||||
and "无" not in str(judge_start) and "无" not in str(judge_end)):
|
||||
overtime_info["系统判定加班时间"] = f"{judge_start} 至 {judge_end}"
|
||||
else:
|
||||
overtime_info["系统判定加班时间"] = None
|
||||
|
||||
Reference in New Issue
Block a user