1
13693261870
2024-12-09 6a959e84e81ce34065a1d0ee4f190f59b0c0d321
se-modules/se-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -46,13 +46,20 @@
         <if test="status != null and status != ''">
            AND status = #{status}
         </if>
         <if test="mark != null and mark != ''">
            and mark = #{mark}
         </if>
      </where>
      order by parent_id, order_num
   </select>
   
   <select id="selectMenuTreeAll" resultMap="SysMenuResult">
      select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.route_name, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time, m.mark
      from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
      from sys_menu m
      where m.menu_type in ('M', 'C') and m.status = 0
      <if test="mark != null and mark != ''">
         and m.mark = #{mark}
      </if>
      order by m.parent_id, m.order_num
   </select>
   
@@ -63,9 +70,7 @@
         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
      <where>
         <if test="menuId != null">
            ur.user_id = #{menuId}
         </if>
         ur.user_id = #{params.userId}
         <if test="menuName != null and menuName != ''">
            AND m.menu_name like concat('%', #{menuName}, '%')
         </if>