From 42aba41375e0fea21feeb0d354e6a036bae54ff3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Jul 2026 09:08:23 +0800 Subject: [PATCH] fix: remove nonexistent status filter from get_org_list query --- wwwroot/api/get_org_list.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/get_org_list.dspy b/wwwroot/api/get_org_list.dspy index a6bfb75..2aa473c 100644 --- a/wwwroot/api/get_org_list.dspy +++ b/wwwroot/api/get_org_list.dspy @@ -2,7 +2,7 @@ result = [{'resellerid': '', 'resellerid_text': '全部'}] try: db = DBPools() async with db.sqlorContext('sage') as sor: - sql = "select id as resellerid, orgname as resellerid_text from organization where status='1' order by orgname" + sql = "select id as resellerid, orgname as resellerid_text from organization where 1=1 order by orgname" rows = await sor.sqlExe(sql, {}) return json.dumps(result + list(rows), ensure_ascii=False) except Exception as e: