From 837a74a6267f961c252179cc529813f4b47ffcf4 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Fri, 26 Jun 2026 07:55:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=B9=E9=87=8F=E7=9C=8B=E6=9D=BF=20S?= =?UTF-8?q?QL=20=E5=88=AB=E5=90=8D=20system=20=E5=8A=A0=E5=8F=8D=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=EF=BC=88MySQL=208.0=20=E4=BF=9D=E7=95=99=E5=AD=97?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=201064=20=E6=95=B4=E9=A1=B5=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/routers/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/routers/dashboard.py b/app/api/routers/dashboard.py index 118f3fc..c012514 100644 --- a/app/api/routers/dashboard.py +++ b/app/api/routers/dashboard.py @@ -155,7 +155,7 @@ def dashboard_overview(rat: str = Query("4g")): ] top_rows = _rows(db, ( - f"SELECT `{cfg['id']}` id, IFNULL(`{cfg['name']}`,'') name, IFNULL(`制式`,'') system," + f"SELECT `{cfg['id']}` id, IFNULL(`{cfg['name']}`,'') name, IFNULL(`制式`,'') `system`," f" IFNULL(`带宽`,'') band, IFNULL(`站型`,'') station," f" ROUND({ul}*100,1) ul, ROUND({dl}*100,1) dl, ROUND({flow},2) flow, ROUND({users},0) users," f" IFNULL(`高负荷问题`,'') problem" @@ -210,7 +210,7 @@ def dashboard_cells( total = _num(_rows(db, f"SELECT COUNT(*) c FROM {t}{where_sql}")[0].get("c")) offset = (page - 1) * page_size rows = _rows(db, ( - f"SELECT `{cfg['id']}` id, IFNULL(`{cfg['name']}`,'') name, IFNULL(`制式`,'') system," + f"SELECT `{cfg['id']}` id, IFNULL(`{cfg['name']}`,'') name, IFNULL(`制式`,'') `system`," f" IFNULL(`带宽`,'') band, IFNULL(`站型`,'') station, IFNULL(`频段`,'') freq," f" ROUND({ul}*100,1) ul, ROUND({dl}*100,1) dl, ROUND({flow},2) flow, ROUND({users},0) users," f" IFNULL(`高负荷问题`,'') problem, IFNULL(`是否高负荷小区`,'否') is_high"