feat(hr_sdk): 考勤接口扩充并发布 0.2.5
This commit is contained in:
@@ -44,6 +44,11 @@ workflow.export_detail(client, task_ids=tids[0], # 全部流程详细
|
||||
days = attendance.daily(client, staff_id, "2026-10-01", "2026-10-31")
|
||||
leaves = attendance.leaves(client, staff_id, "2026-10-01", "2026-10-31")
|
||||
punches = attendance.punches(client, staff_id, "2026-10-01", "2026-10-31")
|
||||
abnormal = attendance.abnormal(client, "2026-10-01", "2026-10-31", is_adjusted="2")
|
||||
overtime = attendance.overtime(client, "2026-10-01", "2026-10-31", work_type="3")
|
||||
all_leaves = attendance.leave_records(client, "2026-10-01", "2026-10-31") # 空工号=全部员工
|
||||
day_punch = attendance.punch_records(client, "37031376", "2026-10-26", "2026-10-27")
|
||||
me = client.current_user() # {"userId","rootId",...}
|
||||
|
||||
shifts = shift.person(client, user_id, base_code="37036361",
|
||||
start="2026-11-01", end="2026-11-09")
|
||||
|
||||
Reference in New Issue
Block a user