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

This commit is contained in:
zlwu committed 2026-05-26 18:24:50 +08:00
1 parent 6bdcd0a565
commit fa60330752
2 files changed
+4

No files matched your search

+1
View File
@@ -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="含实验室自检")
@@ -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;