From a1355ead51386f4df9e94c4fc7148b95263957c5 Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Fri, 2 Dec 2022 14:29:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A6=81=E7=94=A8=E6=8A=BD?= =?UTF-8?q?=E5=B1=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/client_cell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_logic/client_cell.py b/db_logic/client_cell.py index bcec270..7201304 100644 --- a/db_logic/client_cell.py +++ b/db_logic/client_cell.py @@ -19,7 +19,7 @@ class BllClientCell(Repository): def get_drawer_power_user_list(self, drawer_id, client_id, page_param): sql_all = f""" select a.real_name, a.user_id,a.user_code, - CASE WHEN b.id is not null THEN 1 ELSE 0 END drawer_type + CASE WHEN b.id is not null THEN 0 ELSE 1 END drawer_type from rms_user as a LEFT JOIN ( select * from rms_client_cell_user where client_cell_id='{drawer_id}' and client_id='{client_id}' ) as b on a.user_id=b.user_id