|
|
|
@ -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
|
|
|
|
|