feat(shipping-notice): 添加识别定义和规则集管理功能,支持客户和站点的可配置识别规则

This commit is contained in:
hugo committed 2026-07-20 19:28:17 +08:00
1 parent 88408490d7
commit 34d489a2d1
167 files changed
+10365 -7978

No files matched your search

+3 -1
View File
@@ -130,7 +130,7 @@ def write_inventory_export_batch_trigger(
continue
# 调用方只持有非敏感快照;写 trigger 前在服务端按 Source 补入 Profile 密文。
from app.services.shipping_notice.inventory_source_repository import get_rpa_trigger_inventory_source
configuration_test = str((payload or {}).get('trigger_type') or '') == 'configuration_test'
configuration_test = str((payload or {}).get('trigger_type') or '') in {'configuration_test', 'configuration_test_batch'}
trigger_source = get_rpa_trigger_inventory_source(
str(source["source_code"]), enabled_only=not configuration_test,
) or source
@@ -149,6 +149,8 @@ def write_inventory_export_batch_trigger(
"parameters": source.get("parameters") or [],
"query": source.get("query") or {},
"credential_envelope": source.get("credential_envelope") or {},
# 配置测试回调据此将批次结果精确回写到各自站点运行。
"validation_run_no": source.get("validation_run_no"),
})
if not inventory_sources:
return None