角色配置按钮权限根据菜单查询按钮修改;

This commit is contained in:
王奎兴
2026-03-27 16:49:04 +08:00
parent e7768babec
commit 1c9fbf6622
3 changed files with 21 additions and 3 deletions
@@ -82,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ON me.modules_id = mo.modules_id
LEFT JOIN sys_organization so ON me.top_organization_id = so.organization_id
AND so.del_flag = 1
left join ORGANIZATION_MENU om on me.menu_id = om.menu_id
</sql>
<select id="selectMenuList" parameterType="com.linke.product.domain.menu.repository.po.MenuPo" resultMap="MenuResult">
@@ -136,6 +137,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="topOrganizationId != null">
and me.top_organization_id = #{topOrganizationId}
</if>
<if test="organizationId != null">
and om.organization_id = #{organizationId}
</if>
<if test="moduleIdList != null and moduleIdList.size > 0">
and mo.modules_id in
<foreach item="modulesId" collection="moduleIdList" open="(" separator="," close=")">
@@ -510,4 +514,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</delete>
</mapper>
</mapper>