fix(protocol): 协议作废/属地废弃同步样本状态为已作废 (#127) #128

Merged
cykj merged 1 commits from codex/issue-127-void-sample-status-e8e2d83d7cf9 into V2.0 2026-11-19 04:33:49 +00:00
Owner

Summary

  • 细胞存储 / 科研捐赠协议变为 yzf 或 sdfq 时,同步样本 sample_status=yzf 并写入 void_date(含已入库样本)
  • 保留原有样本接收结论废弃(bj)联动
  • 补充历史回刷 SQL:docs/sql/migrations/2026-11-19-protocol-inactive-sample-status-backfill.sql

Test plan

  • pytest backend/tests/test_protocol_reception_discard_sync.py → 6 passed
  • 合入后由用户在集成分支做构建与整体验收
  • 运维按需执行历史回刷 SQL

Related: #127

## Summary - 细胞存储 / 科研捐赠协议变为 `yzf` 或 `sdfq` 时,同步样本 `sample_status=yzf` 并写入 `void_date`(含已入库样本) - 保留原有样本接收结论废弃(`bj`)联动 - 补充历史回刷 SQL:`docs/sql/migrations/2026-11-19-protocol-inactive-sample-status-backfill.sql` ## Test plan - [x] `pytest backend/tests/test_protocol_reception_discard_sync.py` → 6 passed - [ ] 合入后由用户在集成分支做构建与整体验收 - [ ] 运维按需执行历史回刷 SQL Related: https://gitea.aichengyan.com/cykj/zkxw/issues/127
cykj added 1 commit 2026-11-19 04:32:20 +00:00
协议变为 yzf 或 sdfq 时,除样本接收废弃联动外,将下属有效样本 sample_status 置为 yzf 并写入 void_date;补充历史回刷 SQL 与单测(#127)。

Co-authored-by: Cursor <cursoragent@cursor.com>
cykj merged commit 76ddb81818 into V2.0 2026-11-19 04:33:49 +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#128