Selaa lähdekoodia

根据用户ID查询菜单条件加别名

RuoYi 4 vuotta sitten
vanhempi
commit
0e51d1e7b1

+ 3 - 3
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml

@@ -61,13 +61,13 @@
61 61
 		left join sys_role ro on ur.role_id = ro.role_id
62 62
 		where ur.user_id = #{params.userId}
63 63
 		<if test="menuName != null and menuName != ''">
64
-            AND menu_name like concat('%', #{menuName}, '%')
64
+            AND m.menu_name like concat('%', #{menuName}, '%')
65 65
 		</if>
66 66
 		<if test="visible != null and visible != ''">
67
-            AND visible = #{visible}
67
+            AND m.visible = #{visible}
68 68
 		</if>
69 69
 		<if test="status != null and status != ''">
70
-            AND status = #{status}
70
+            AND m.status = #{status}
71 71
 		</if>
72 72
 		order by m.parent_id, m.order_num
73 73
 	</select>