From 0078ac6ffa486c481c26b7c0b033ff9664096a7f Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期二, 11 二月 2025 16:38:10 +0800 Subject: [PATCH] 报告生成增加 --- app/service/llm.py | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/service/llm.py b/app/service/llm.py index d26a448..9c841de 100644 --- a/app/service/llm.py +++ b/app/service/llm.py @@ -10,13 +10,10 @@ query = db.query(CommonLlmModel) else: group_list = [i.id for i in user.groups] - query = db.query(CommonLlmModel) - query = query.intersect( - db.query(CommonLlmModel).join( - group_llm_table, - CommonLlmModel.id == group_llm_table.c.llm_id - ).filter( - group_llm_table.c.group_id.in_(group_list) - ) + query = db.query(CommonLlmModel).join( + group_llm_table, + CommonLlmModel.id == group_llm_table.c.llm_id + ).filter( + group_llm_table.c.group_id.in_(group_list) ) - return {"rows": [kld.to_json() for kld in query.all()]} \ No newline at end of file + return {"rows": [kld.to_json() for kld in query.all()]} -- Gitblit v1.8.0