1
13693261870
2024-11-27 9e0878554bd16775e3eb96bb88d351c5030bf7e1
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>