Browse Source

feat(qc): add biz_type column to qc_work_order table for outbound business type

zlwu 5 months ago
parent
commit
fa60330752

+ 1 - 0
backend/app/models/models.py

@@ -1237,6 +1237,7 @@ class BizQcWorkOrder(Base):
         comment="质检业务类型 inbound入库质检 outbound出库质检 temporary临时质检",
     )
     infusion_schedule_id = Column(String(64), nullable=True, comment="中试输注计划ID(出库质检关联)")
+    biz_type = Column(String(20), nullable=True, comment="业务类型: pilot_service=中试服务, clinical_application=临床应用")
     cell_product_id = Column(String(64), nullable=True, comment="质检对象-细胞产品ID")
     work_order_status = Column(String(16), nullable=False, default="dpz", comment="工单状态")
     has_lab = Column(String(1), nullable=False, default="0", comment="含实验室自检")

+ 3 - 0
docs/sql/2026-05-26-qc-work-order-add-biz-type.sql

@@ -0,0 +1,3 @@
+-- 出库质检工单:新增 biz_type 字段
+ALTER TABLE biz_qc_work_order
+  ADD COLUMN biz_type VARCHAR(20) NULL COMMENT '业务类型: pilot_service=中试服务, clinical_application=临床应用' AFTER infusion_schedule_id;