feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务

- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。
- 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。
- 更新 ORM 模型,增加出站报表相关的持久化模型。
- 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
hugo committed 2026-10-19 18:45:16 +08:00
1 parent 39fe3c05f2
commit 911afa0f73
152 files changed
+9861 -2984

No files matched your search

+4 -4
View File
@@ -68,12 +68,12 @@ def test_title_row_must_not_count_as_detail(tmp_path: Path):
"""
标题含 receipt 时旧逻辑会把真表头当成明细 → 误 success。
[断言意图] 仅标题+表头必须判定为无明细(False),enforce 抛 no_receipt_data。
[断言意图] 仅标题+表头必须判定为无明细(False),enforce 抛 no_inbound_data。
"""
path = tmp_path / 'header_only.xlsx'
_write_dsv_title_header_only(path)
assert inbound_excel_has_detail_rows(path) is False
with pytest.raises(NoInboundDataError, match='no_receipt_data'):
with pytest.raises(NoInboundDataError, match='no_inbound_data'):
enforce_inbound_excel_not_empty(path)
@@ -97,10 +97,10 @@ def test_production_header_only_sample_is_empty(tmp_path: Path):
"""
生产样例 receipt_RUN202609290016193A2E_*_BYAWSPRD01_* 仅表头却曾 success。
[断言意图] 复制该文件后必须判 empty / no_receipt_data。
[断言意图] 复制该文件后必须判 empty / no_inbound_data。
"""
target = tmp_path / _DROP_SAMPLE.name
shutil.copy2(_DROP_SAMPLE, target)
assert inbound_excel_has_detail_rows(target) is False
with pytest.raises(NoInboundDataError, match='no_receipt_data'):
with pytest.raises(NoInboundDataError, match='no_inbound_data'):
enforce_inbound_excel_not_empty(target)