| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| admin | ||
| ai | ||
| assistant | ||
| auth | ||
| clinical-gap | ||
| clinical-signals | ||
| facts | ||
| mcp | ||
| patient | ||
| persona | ||
| plan | ||
| plan-aggregate | ||
| realtime-coach | ||
| sync | ||
| weixin-aibot |
上一个提交补完 /agents、/workload、/plans/matrix 三个 query 参数的读接口,
**紧接着就漏了这条** —— `POST /plans/assignments/propose/refill` 的 clinicId
在请求体里,按 `@Query('clinicId')` 去数根本数不到。
实测比前三个都重:朝阳公园的主管带杭州大厦的 id POST 过来,
拿回了**那家诊所患者的真实姓名**(前三个只到员工名册与人数分布)。
⇒ 闸钉进 `assignment-proposal.service.propose()` 而不是 controller:
提案是唯一会吐患者名单的读路径,谁调都得拦得住(REST / MCP / 以后的新入口),
⛔ 不指望每个 controller 记得加 —— 这一轮漏的就是"记得"。
⚠ ️ 幂等:MCP 那边已经 resolve 过一次,合法 id 原样返回,再过一次无副作用。
回归同步加一条:锁 service 层那句 resolveClinicId,并禁掉
`const { clinicId } = input` 这种直接解构(那正是漏的写法)。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| admin | Loading commit data... | |
| ai | Loading commit data... | |
| assistant | Loading commit data... | |
| auth | Loading commit data... | |
| clinical-gap | Loading commit data... | |
| clinical-signals | Loading commit data... | |
| facts | Loading commit data... | |
| mcp | Loading commit data... | |
| patient | Loading commit data... | |
| persona | Loading commit data... | |
| plan | Loading commit data... | |
| plan-aggregate | Loading commit data... | |
| realtime-coach | Loading commit data... | |
| sync | Loading commit data... | |
| weixin-aibot | Loading commit data... |