|
|
@ -64,10 +64,10 @@ class BllModuleRelation(Repository):
|
|
|
|
|
|
|
|
|
|
|
|
def get_role_module_list(self, role_id):
|
|
|
|
def get_role_module_list(self, role_id):
|
|
|
|
sql_all = f"""
|
|
|
|
sql_all = f"""
|
|
|
|
SELECT a.module_id, b.module_code, b.sort_index, b.module_name
|
|
|
|
select a.module_id, a.module_code, a.sort_index, a.module_name, a.module_type,
|
|
|
|
from rms_module_relation as a
|
|
|
|
CASE WHEN b.object_id is NULL THEN 0 ELSE 1 END have from rms_module as a LEFT JOIN (
|
|
|
|
LEFT JOIN rms_module as b on a.module_id=b.module_id
|
|
|
|
select * from rms_module_relation WHERE object_id='{role_id}' and object_type=1
|
|
|
|
WHERE object_id='{role_id}' AND object_type=1
|
|
|
|
) b on a.module_id=b.module_id
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
return self.execute(sql_all).fetchall()
|
|
|
|
return self.execute(sql_all).fetchall()
|
|
|
|
|
|
|
|
|
|
|
|