feat: 新增打卡明细接口支持,优化加班校验逻辑

1. 新增打卡明细接口封装,支持单页查询与自动分页获取员工真实打卡记录
2. 重构加班校验逻辑,使用打卡明细接口替代原考勤逐日接口的打卡字段,解决跨天打卡归属错误问题
3. 移除过时的打卡时间解析与单条打卡修正逻辑,简化代码维护
4. 优化OA登录脚本,新增requests依赖并完善会话校验逻辑
5. 新增钉钉群机器人推送通用模块,支持多场景通知推送
This commit is contained in:
2026-08-18 13:35:11 +08:00
parent 5422dc8e3f
commit e32ea50e5d
8 changed files with 1163 additions and 290 deletions
+253 -40
View File
@@ -1,40 +1,253 @@
操作步骤 说明
步骤1 登录EHR网页系统
步骤2 工作台-处理类-待处理-搜索“请假”单据
步骤3 批量获取页面全部待审核单据
步骤4 逐条打开单据,调取员工假期额度、休假日期数据
步骤5 匹配【判断逻辑】执行自动校验,合规自动通过,不合规自动驳回并回填驳回理由,异常单据单独标记
步骤6 批量导出《请假审批自动驳回人员明细清单》《附件人工复核待办清单》,钉钉推送至HRBP
步骤7 HR线下根据待办清单人工核查各类假期附件材料
判断逻辑
"(1)年度福利假 / 事假
【RPA 自动校验】请假起止日期剔除周末、法定节假日后的实际休假天数,与单据填写请假天数完全匹配;不匹配直接自动驳回。
【人工复核】无强制附件要求。
(2)调休假
【RPA 自动校验 1】实际休假天数与填报天数一致,不一致驳回;
【RPA 自动校验 2】核查员工请假前已登记未使用休息日加班额度,额度不足 / 无前置加班记录自动驳回;
【人工复核】无强制附件校验要求。
(3)病假
【RPA 自动校验 1】实际休假天数与填报天数一致,不一致驳回;
【RPA 自动校验 2】校验是否上传附件,无附件直接驳回;
【人工复核】附件内容人工核查。
(4)特别福利假(婚假 / 丧假 / 产检假)
【RPA 自动校验 1】实际休假天数匹配填报天数,不一致驳回;
【RPA 自动校验 2】校验是否上传附件,无附件直接驳回;
【人工复核】附件内容人工核查。
(5)特殊事假
【RPA 自动校验 1】实际休假天数与填报天数一致,不一致驳回;
【RPA 自动校验 2】校验是否上传对应事由附件,无附件直接驳回;
【人工复核】附件内容人工核查。
(6)小时特假
【RPA 自动校验 1】单次申请时长≤2 小时,超时直接驳回;
【RPA 自动校验 2】校验是否上传请假证明附件,无附件直接驳回;
【人工复核】附件内容人工核查。"
交付物
"1.《请假审批自动驳回人员明细清单》:列明员工、假期类型、机器校验驳回项、驳回原因;
2.《附件人工复核待办清单》:机器校验全部通过、需 HR 线下核验附件的单据,用于每日人工专项复核。"
{
"code" : 200,
"message" : "操作成功",
"data" : {
"total" : 34,
"start" : 1,
"pageCount" : 5,
"list" : [ {
"id" : "3ca6c81c7c5d44dda8c52a640c646fea",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-18 08:54:44",
"status" : "1",
"addr_status" : "0",
"time_order" : "1",
"pb_id" : "CJDE220960286",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-18",
"create_time" : "2026-08-18 08:56:14",
"address" : "总部-考勤-库房",
"staff_name" : "余陈斌",
"varchar1" : null,
"operate_time" : "2026-08-18 08:56:14",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "ab6fd17b0898452a971b17402d5f64a3",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-18 00:03:00",
"status" : "5",
"addr_status" : "0",
"time_order" : "2",
"pb_id" : "CJDE211661047",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-17",
"create_time" : "2026-08-18 00:11:14",
"address" : "总部-考勤-前厅",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-18 03:05:06",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "f0f1ae065fa447c99d45ca3ae4d4b31d",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-17 08:45:46",
"status" : "1",
"addr_status" : "0",
"time_order" : "1",
"pb_id" : "CJDE220960286",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-17",
"create_time" : "2026-08-17 08:51:04",
"address" : "总部-考勤-库房",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-18 03:05:06",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "041e3ebdab964131ab32b7238b5efd0c",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-16 21:04:08",
"status" : "5",
"addr_status" : "0",
"time_order" : "2",
"pb_id" : "CJDE220960286",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-16",
"create_time" : "2026-08-16 21:06:03",
"address" : "总部-考勤-库房",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-17 09:19:00",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "2f001d7f3795468fb071585cc3a2ed38",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-16 08:49:19",
"status" : "1",
"addr_status" : "0",
"time_order" : "1",
"pb_id" : "CJDE220960286",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-16",
"create_time" : "2026-08-16 08:51:15",
"address" : "总部-考勤-库房",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-17 09:19:00",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "3ece02fb14834c7997fe22742f446782",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-15 19:36:58",
"status" : "5",
"addr_status" : "0",
"time_order" : "2",
"pb_id" : "CJDE211661047",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-15",
"create_time" : "2026-08-15 19:41:00",
"address" : "总部-考勤-前厅",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-17 12:09:01",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "1104cbe2cc1247f9b55e3c0e53daf53a",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-15 10:46:42",
"status" : "1",
"addr_status" : "0",
"time_order" : "1",
"pb_id" : "CJDE220960286",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-15",
"create_time" : "2026-08-15 10:51:00",
"address" : "总部-考勤-库房",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-17 12:09:00",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
}, {
"id" : "37883245622e4821a9a54907e15db3fc",
"staff_id" : "567a66fd-7a9f-11ec-b449-000c296f9469",
"kq_time" : "2026-08-14 20:30:35",
"status" : "5",
"addr_status" : "0",
"time_order" : "2",
"pb_id" : "CJDE220960286",
"time_id" : "",
"kq_type" : "9",
"comp_id" : "b9cee736-cef2-11ee-b449-000c296f9469",
"kq_bc_id" : "de1daf426e7f4fa6916f3012434e8973",
"dept_id" : "8daffc5d-0ce1-4fd5-b485-3edfbcd4cb78",
"status_time" : null,
"team_id" : "355945ef0e894881a21980b79b7dfbf1",
"bc_type" : null,
"work_date_id" : null,
"bc_date" : "2026-08-14",
"create_time" : "2026-08-14 20:36:00",
"address" : "总部-考勤-库房",
"staff_name" : "余陈斌",
"varchar1" : "1",
"operate_time" : "2026-08-17 14:50:01",
"Longitude" : null,
"Latitude" : null,
"DEPT_ORG_NAME" : "物流小组",
"POST_ALIAS_NAME" : "车队长",
"Content" : null,
"ssid" : null,
"mac" : null
} ]
},
"des" : null,
"errStack" : null,
"success" : true
}