协议样本、生产产出和盘点明细按行更新并保留原 id;补齐存储证明质检预填、离职人员显示名,以及样本采集通知模板字段。 Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
816 B
SQL
21 lines
816 B
SQL
-- =============================================================================
|
|
-- 样本接收检查项改名:针头无暴露 → 针路密闭
|
|
-- 配置表与结果快照一并更新,接收表单和已保存的接收详情显示同一名称。
|
|
-- 可重复执行:名称已改过后 WHERE 不再命中。
|
|
-- =============================================================================
|
|
|
|
UPDATE biz_sample_reception_check_item
|
|
SET item_code = '针路密闭',
|
|
item_name = '针路密闭',
|
|
update_time = NOW()
|
|
WHERE del_flag = 0
|
|
AND item_code = '针头无暴露'
|
|
AND item_name = '针头无暴露';
|
|
|
|
UPDATE biz_sample_reception_check_result
|
|
SET item_code = '针路密闭',
|
|
item_name = '针路密闭',
|
|
update_time = NOW()
|
|
WHERE item_code = '针头无暴露'
|
|
OR item_name = '针头无暴露';
|