From fa6033075266215e7ddbc512127757f387eebeb9 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Tue, 26 May 2026 18:24:50 +0800 Subject: [PATCH] feat(qc): add biz_type column to qc_work_order table for outbound business type --- backend/app/models/models.py | 1 + docs/sql/2026-05-26-qc-work-order-add-biz-type.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 docs/sql/2026-05-26-qc-work-order-add-biz-type.sql diff --git a/backend/app/models/models.py b/backend/app/models/models.py index 1a5140ca..109fd13d 100644 --- a/backend/app/models/models.py +++ b/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="含实验室自检") diff --git a/docs/sql/2026-05-26-qc-work-order-add-biz-type.sql b/docs/sql/2026-05-26-qc-work-order-add-biz-type.sql new file mode 100644 index 00000000..1efdc1d1 --- /dev/null +++ b/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;