finalize medical consultation agent backend
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user