feat(freight-rpa): 库存/收料改名在手/入站,报表归属RPA,类名统一FreightRpa

把 shipping 侧 inventory/receipt 词根迁到 onhand/inbound,29 张表与
枚举/权限/前端/i18n 同步改名;在手与入站报表配置及文件改由 freight_rpa
持有,发货与调拨仅按 source_code 消费;ORM 类加 FreightRpa 前缀,
上传动作改为 freight_rpa_upload。含类名与上传动作改名规格文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-10-19 10:46:06 +08:00
1 parent ffc0d4a430
commit 39fe3c05f2
453 files changed
+17945 -8646

No files matched your search

+3 -3
View File
@@ -275,7 +275,7 @@ def test_batch_scheduled_trigger_skips_per_source_task_identity(monkeypatch, tmp
trigger_dir.mkdir()
drop_dir.mkdir()
trigger_path = trigger_dir / "inventory_export_batch_scheduled.json"
# 与 run_shipping_inventory_rpa_schedule 写入的 trigger 形状一致:
# 与 run_freight_rpa_onhand_schedule 写入的 trigger 形状一致:
# batch 级无 task_no,逐源无 task_no/source_run_no/lease_token/candidate_set_id/execution_id/gate_id。
trigger_path.write_text(json.dumps({
"action": "inventory_export_batch",
@@ -335,7 +335,7 @@ def test_batch_configuration_test_skips_per_source_task_identity(monkeypatch, tm
drop_dir.mkdir()
run_no = "CONFIG-DSV360_AWSBI_BYAWSPRD01-20260909020428918536"
trigger_path = trigger_dir / f"inventory_export_batch_{run_no}.json"
# 与 inventory_configuration_test.start_test_export 写入形状一致:
# 与 onhand_configuration_test.start_test_export 写入形状一致:
# trigger_type=configuration_test,无 task_no / gate_id / execution_id 等生产身份。
trigger_path.write_text(json.dumps({
"action": "inventory_export_batch",
@@ -677,7 +677,7 @@ def test_rotate_log_file_deletes_current_when_backup_count_zero(monkeypatch, tmp
def _load_worker_logging():
"""加载 scripts/freight_rpa/common/worker_logging.py 供单测直接断言。
历史背景:文件日志实现(tee/轮转/时间戳)原内置于 inventory_rpa_worker.py,
历史背景:文件日志实现(tee/轮转/时间戳)原内置于 onhand_rpa_worker.py,
已提取为公共模块;Worker 内部私有名(_configure_file_logging 等)已删除,
日志行为用例统一改测公共接口,行为断言保持等价。
"""