全新的process方法完成(Message其他部分仍未完成);对应测试;调整部分注释;数据库检索优化

This commit is contained in:
UnCLAS-Prommer
2026-02-23 21:29:17 +08:00
parent 698b8355a4
commit 0d07e85434
7 changed files with 627 additions and 546 deletions

View File

@@ -20,7 +20,7 @@ class PersonUtils:
"""根据person_id获取用户信息"""
try:
with get_db_session() as session:
statement = select(PersonInfo).filter_by(person_id=person_id)
statement = select(PersonInfo).filter_by(person_id=person_id).limit(1)
if result := session.exec(statement).first():
return MaiPersonInfo.from_db_instance(result)
except Exception as e: