添加禁用抽屉

duizhaopin
13507605001 2 years ago
parent a318614c63
commit a1355ead51

@ -19,7 +19,7 @@ class BllClientCell(Repository):
def get_drawer_power_user_list(self, drawer_id, client_id, page_param): def get_drawer_power_user_list(self, drawer_id, client_id, page_param):
sql_all = f""" sql_all = f"""
select a.real_name, a.user_id,a.user_code, 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 ( from rms_user as a LEFT JOIN (
select * from rms_client_cell_user where client_cell_id='{drawer_id}' and client_id='{client_id}' 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 ) as b on a.user_id=b.user_id

Loading…
Cancel
Save