From e17024128f19f36ce7ab3e1c6c4466b75e7c9f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Wed, 8 Apr 2026 13:16:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8Information.id?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/routers/information.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/routers/information.py b/backend/app/routers/information.py index ae3648e..5080795 100644 --- a/backend/app/routers/information.py +++ b/backend/app/routers/information.py @@ -1102,12 +1102,12 @@ def get_seek_stats( # 自有匹配成功:is_matched = 'confirmed' # 网络数据匹配成功:is_matched = 'pending_network'(表示网络数据已匹配) from sqlalchemy import func - self_matched = db.query(func.count(Information.f99_90_id)).filter( + self_matched = db.query(func.count(Information.id)).filter( Information.info_type == 'seek', Information.is_matched == 'confirmed' ).scalar() or 0 - network_matched = db.query(func.count(Information.f99_90_id)).filter( + network_matched = db.query(func.count(Information.id)).filter( Information.info_type == 'seek', Information.is_matched == 'pending_network' ).scalar() or 0