167 住院管理-》住院护士站-》入出转管理:护士登录的科室能接收查看到其他科室的入科患者

This commit is contained in:
Ranyunqiao
2026-03-11 10:26:00 +08:00
parent 6179a89b6c
commit d1aa91f727
3 changed files with 18 additions and 5 deletions

View File

@@ -90,6 +90,7 @@
WHERE ae.delete_flag = '0'
AND ae.class_enum = #{imp}
AND ae.status_enum != #{toBeRegistered}
AND ae.organization_id = #{currentUserOrgId}
GROUP BY ae.tenant_id,
ae.id,
ae.bus_no,
@@ -198,6 +199,7 @@
WHERE bed.form_enum = #{bed}
AND bed.delete_flag = '0'
AND bed.status_enum != #{inactive}
AND (ae.organization_id = #{currentUserOrgId} OR ae.id IS NULL)
GROUP BY bed.id,
bed.bus_no,
bed.tenant_id,