作者 Gold_Fish
提交者 Gitee

修改根据userId获取菜单sql

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