修改权限查询问题

This commit is contained in:
gong
2025-12-22 16:42:38 +08:00
parent 84020f7d86
commit 696e177846

View File

@@ -11,7 +11,9 @@
left join sys_menu as c on c.menu_id = b.menu_id
where a.user_id = #{userId} and c.menu_id is not null
<if test="type != null">
and b.type=#{type}
<if test="type == 0">
and b.type = #{type}
</if>
</if>
order by menu_sort desc
</select>