1. 新增考勤异常查询与导出模块,支持当月异常拉取、Excel导出、钉钉推送提醒 2. 完善请假/加班流程解析与校验,新增附件下载、OCR核验能力 3. 新增银行卡信息校验模块,支持在职/离职员工工资卡数据核对与异常导出 4. 新增通用OCR工具模块,支持病假/婚假/产检假附件关键词检测与日期提取 5. 新增门店请休假异常名单、银行卡检查等需求文档 6. 重构部分现有模块代码,优化配置与接口调用逻辑 7. 新增测试文件与工具类,完善项目基础能力
43 lines
2.1 KiB
Python
43 lines
2.1 KiB
Python
# -*- coding: utf-8 -*-
|
||
"""
|
||
@Module: hrbp.ehr.common
|
||
@FileName: config.py
|
||
@Author: 小布丁
|
||
@CreateTime: 2026-08-08 10:40
|
||
@Description: HR 系统配置,集中管理接口地址、分页大小等常量(供各业务模块复用)
|
||
@Version: 1.0.0
|
||
"""
|
||
|
||
# ---------- 银行卡(工资卡)信息查询接口 ----------
|
||
# 分页查询工资卡信息(aa.md 提供),返回 JSON
|
||
WAGE_CARD_URL = "https://hr.37du.co/RedseaPlatform/getPageAjax/HrStaffWageCard.mc"
|
||
|
||
# 单页最大抓取条数
|
||
PAGE_MAX_SIZE = 500
|
||
|
||
# ---------- 员工花名册(自定义导出)页面 ----------
|
||
# 花名册自定义导出页面(aa.md 提供),基于 DrissionPage 浏览器自动化操作
|
||
ROSTER_URL = "https://hr.37du.co/RedseaPlatform/PtPortal.mc?method=classic#ajax&1&nworktoday-40175-24311-77128-52242&nworktoday-40175-24311|/RedseaPlatform/hrRoster/1116da64-b094-11ea-b588-14187743d052/getCustomCommonList.mc?clickFlag=true&treePermitType=permit&useSealTreeData=0&menuName=%E5%91%98%E5%B7%A5%E8%8A%B1%E5%90%8D%E5%86%8C"
|
||
|
||
# 花名册默认导出的自定义模板名称
|
||
ROSTER_TEMPLATE_NAME = "员工基础信息"
|
||
|
||
# ---------- 考勤异常查询接口 ----------
|
||
# 获取当前用户信息(用于校验 cookies 有效性,并取得查询考勤异常所需的 userId / rootId(treecode))
|
||
GET_CUR_USER_INFO_URL = "https://hr.37du.co/RedseaPlatform/PtUsers.mc?method=getCurUserInfo"
|
||
|
||
# 分页查询考勤异常(aa.md 提供)
|
||
ATTENDANCE_ABNORMAL_URL = "https://hr.37du.co/RedseaPlatform/kqController/getPageAjaxList.mc"
|
||
|
||
# 考勤异常确认/调整接口(abnormalIds=异常单据id,type=1 表示自动确认)
|
||
ATTENDANCE_ADJUST_URL = "https://hr.37du.co/RedseaPlatform/abnormalAdjust/KqCountAbnormal.mc"
|
||
|
||
# 查询排班接口(aa.md 提供,用于过滤虚假异常)
|
||
SHIFT_URL = "https://hr.37du.co/RedseaPlatform/redmagicapi/rf_p_kq_count_SelectBanci/getExecutePageResult.mc"
|
||
|
||
# 查询请假记录接口(aa.md 提供,用于过滤虚假异常)
|
||
LEAVE_URL = "https://hr.37du.co/RedseaPlatform/kqController/getPageAjaxList.mc"
|
||
|
||
# 查询加班记录接口(aa.md 提供,用于过滤虚假异常)
|
||
OVERTIME_URL = "https://hr.37du.co/RedseaPlatform/kqController/getPageAjaxList.mc"
|