"""构建运输-地磅出入库关联读模型(不含现场链接,现场链接见 pl_transport_site_link)。""" from __future__ import annotations from app.schemas.pl.transport import TransportInventoryLinkRead def build_transport_inventory_link_read( db: Session, *, plan_product_id: str, product_name: str, db_purchase_plan_id: str, db_inventory_id: str, batch_no: str, plan_no: str, stop_type: str | None = None, stop_id: str | None = None, ) -> TransportInventoryLinkRead: del db # 现场链接已迁至 pl_transport_site_link return TransportInventoryLinkRead( plan_product_id=plan_product_id, product_name=product_name, db_purchase_plan_id=db_purchase_plan_id, db_inventory_id=db_inventory_id, batch_no=batch_no, plan_no=plan_no, stop_type=stop_type, stop_id=stop_id, )