feat(qc): 接收入库编码同步下游副本并补充修复脚本 #172

Merged
cykj merged 2 commits from cursor/lab-storage-code-rename-and-repairs into V2.0 2026-12-02 07:21:44 +00:00
Owner

Summary

  • 编辑样本接收且入库编码变更时,同步改写关联生产/质检/库位等下游编码副本
  • 新增合同重复单作废、接收下游补建两个运维修复脚本(默认 dry-run)

Test plan

  • cd backend && ./venv/bin/python -m pytest tests/test_lab_storage_code_rename.py -q(4 passed)
  • 构建与运行验收留给用户
## Summary - 编辑样本接收且入库编码变更时,同步改写关联生产/质检/库位等下游编码副本 - 新增合同重复单作废、接收下游补建两个运维修复脚本(默认 dry-run) ## Test plan - [x] `cd backend && ./venv/bin/python -m pytest tests/test_lab_storage_code_rename.py -q`(4 passed) - [ ] 构建与运行验收留给用户
cykj added 2 commits 2026-12-02 07:21:34 +00:00
避免只改接收表编码后,生产/质检/库位等关联副本仍保留旧码。

Co-authored-by: Cursor <cursoragent@cursor.com>
供运维 dry-run/--apply 修历史数据,不改日常接口路径。

Co-authored-by: Cursor <cursoragent@cursor.com>
cykj merged commit 323ec6ee74 into V2.0 2026-12-02 07:21:44 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cykj/zkxw#172