提交
This commit is contained in:
1 parent
a9667f00cc
commit
817dfff43c
174 files changed
+17383
-14508
No files matched your search
@@ -0,0 +1,12 @@
|
||||
-- 出库质检:计划自动 QC 使用 trigger_source=schedule(生产过程派发仍为 production)
|
||||
-- 历史出库工单(无 production_work_order_id)由 reception 默认误标为样本接收,回写为 schedule
|
||||
|
||||
UPDATE biz_qc_work_order
|
||||
SET trigger_source = 'schedule'
|
||||
WHERE work_order_type = 'outbound'
|
||||
AND del_flag = 0
|
||||
AND (production_work_order_id IS NULL OR production_work_order_id = '')
|
||||
AND trigger_source IN ('reception', '');
|
||||
|
||||
CREATE INDEX idx_qc_wo_schedule_trigger
|
||||
ON biz_qc_work_order (tenant_no, infusion_schedule_id, trigger_source, del_flag);
|
||||
Reference in new issue
Block a user