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
@@ -66,8 +66,8 @@ def _write_template_add(template_file, output_path, unit_no, unit_name, records)
orig_rows = rb.sheet_by_index(0).nrows
wb = xl_copy(rb)
ws = wb.get_sheet(0) # 批量导入
ws.write(0, 1, unit_no) # B1 社保号
ws.write(0, 3, unit_name) # D1 参保单位全称
ws.write(0, 1, config._clean_value(unit_no)) # B1 社保号
ws.write(0, 3, config._clean_value(unit_name)) # D1 参保单位全称
for i, rec in enumerate(records):
r = config.TPL_DATA_START_ROW - 1 + i # 0-based:模板第4行 → index 3
for c, col in enumerate(config.TPL_COLS_ADD):
@@ -183,8 +183,8 @@ def _write_template_stop(template_file, output_path, unit_no, unit_full_name, re
orig_rows = rb.sheet_by_index(0).nrows
wb = xl_copy(rb)
ws = wb.get_sheet(0) # 批量导入
ws.write(0, 1, unit_no) # B1 单位社保号
ws.write(0, 3, unit_full_name) # D1 单位全称
ws.write(0, 1, config._clean_value(unit_no)) # B1 单位社保号
ws.write(0, 3, config._clean_value(unit_full_name)) # D1 单位全称
for i, rec in enumerate(records):
r = config.TPL_DATA_START_ROW - 1 + i
for c, col in enumerate(config.TPL_COLS_STOP):