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: