finalize medical consultation agent backend

This commit is contained in:
刘金宝
2026-06-03 15:51:46 +08:00
parent 93d9e1c6a5
commit eb43573a44
33 changed files with 1063 additions and 281 deletions
@@ -50,7 +50,7 @@ class SourceCaseRepository:
return self.db.scalar(stmt)
def get_department_name(self, department_id: int | None) -> str:
"""科室名称:兼容当前 demo 的 departments,源库无科室表时返回空字符串"""
"""科室名称:按用户端 department 表读取科室名称"""
if not department_id:
return ""
department = self.db.scalar(select(Department).where(Department.id == department_id))