|
@@ -79,8 +79,8 @@
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
|
left join sys_role ro on ur.role_id = ro.role_id
|
|
|
- left join sys_user u on ur.user_id = u.user_id
|
|
|
- where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0
|
|
|
+ left join sys_user u on ur.user_id = u.id
|
|
|
+ where u.id = #{userId} and m.menu_type in ('M', 'C') and m.status = 1 AND ro.status = 1
|
|
|
order by m.parent_id, m.order_num
|
|
|
</select>
|
|
|
|