runAllForHost 的 close-orphan 此前只关 status='active',assigned 不动;而 upsertPlan
注释 + closeStaleActivePlan 定向路径已是"缺口全消失即关、assigned 也关"(2026-06 决策)。
批量路径漏改 → 已认领的误召计划在算法修复后仍残留旧理由,客服按错信息跟进
(本次部署实测:李姝妤外院/余奕铭无意愿/祁小夏固定桥 排除已生效但 claimed 计划没退役)。
改:批量扫 status IN ('active','assigned'),不在本轮 hitsByPatient 的一并 supersede。
in-pool 的 assigned 不误关(其患者在 hitsByPatient 被跳过,理由已由 upsert 刷新+继承认领)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| cli | Loading commit data... | |
| common | Loading commit data... | |
| config | Loading commit data... | |
| modules | Loading commit data... | |
| openapi | Loading commit data... | |
| prisma | Loading commit data... | |
| queues | Loading commit data... | |
| redis | Loading commit data... | |
| types | Loading commit data... | |
| app.module.ts | Loading commit data... | |
| health.controller.ts | Loading commit data... | |
| main.ts | Loading commit data... |