feat: 新增交通银行数据导出插件及测试通道机制

This commit is contained in:
2026-11-05 15:20:34 +08:00
parent b976b80d9d
commit 4e8b3e7d43
230 changed files with 19827 additions and 1440 deletions
@@ -116,10 +116,12 @@ def build_roster_query_params(roster_id, table_id, menu_name, common_query, toda
}
def build_rejoin_query_params(today):
def build_rejoin_query_params(today, month_first=None):
"""「离职当月再入职人员算薪台账」实时查询参数。
查询条件 = 离职日期 ∈ [本月1日, 今天](只取本月数据)。"""
month_first = date(today.year, today.month, 1)
查询条件 = 离职日期 ∈ [月首, 今天];月首默认运行日所在月 1 号,
月初运行(积分日期 T-2 属上月)时由调用方传入 T-2 所在月 1 号,
否则上月离职再入职的人员整批查不到、不操作段会失效。"""
month_first = month_first or date(today.year, today.month, 1)
common_query = encode_common_query([
build_condition(f"`{config.REJOIN_FIELD_PREFIX}.leave_date`", ">=",
month_first.strftime("%Y-%m-%d"), left_bracket="(",