feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务
- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。 - 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。 - 更新 ORM 模型,增加出站报表相关的持久化模型。 - 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
1 parent
39fe3c05f2
commit
911afa0f73
152 files changed
+9861
-2984
No files matched your search
@@ -1,10 +1,11 @@
|
||||
"""
|
||||
backend/app/models/freight_rpa_config.py
|
||||
|
||||
用途:定义货代库存源、RPA Profile、在手报表配置、通用路由规则及外部系统仓库映射主数据。
|
||||
用途:定义货代库存源、RPA Profile、在手/入站/出站报表配置、通用路由规则及外部系统仓库映射主数据。
|
||||
依赖:models.base.Base、SQLAlchemy ORM;凭据密文由 freight_rpa.common.credential_crypto 读写。
|
||||
逻辑:库存运行链路以 FreightRpaSource.source_code 为业务主键;RPA Profile 仅提供登录连接配置;
|
||||
在手报表路径/查询条件/解析方案绑定自 s18 起归 FreightRpaOnhandReportConfig(站点行不再存这三列),
|
||||
入站/出站配置分别挂 inbound_report_config / outbound_report_config 一对一关系;
|
||||
外部系统映射仅供后端内部复用,不承载调拨决策。
|
||||
"""
|
||||
|
||||
@@ -132,6 +133,9 @@ class FreightRpaSource(Base):
|
||||
inbound_report_config: Mapped[Optional['FreightRpaInboundReportConfig']] = relationship(
|
||||
back_populates='source', uselist=False, cascade='all, delete-orphan',
|
||||
)
|
||||
outbound_report_config: Mapped[Optional['FreightRpaOutboundReportConfig']] = relationship(
|
||||
back_populates='source', uselist=False, cascade='all, delete-orphan',
|
||||
)
|
||||
|
||||
|
||||
class FreightRpaOnhandReportConfig(Base):
|
||||
|
||||
Reference in new issue
Block a user