liding
8 天以前 3eb812d9afc90e909a52eae85b3a31eedaf684bc
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -29,7 +29,7 @@
   </resultMap>
   <sql id="selectMenuVo">
        select menu_id, menu_name, parent_id, order_num, path, component, `query`, route_name, is_frame, is_cache, menu_type, visible, status, COALESCE(perms,'') as perms, icon, create_time
        select menu_id, menu_name, parent_id, order_num, path, component, "query", route_name, is_frame, is_cache, menu_type, visible, status, COALESCE(perms,'') as perms, icon, create_time
      from sys_menu
    </sql>
    
@@ -50,7 +50,7 @@
   </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, COALESCE(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
      select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m."query", m.route_name, m.visible, m.status, COALESCE(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
      from sys_menu m where m.menu_type in ('M', 'C') and m.status = '0'
      order by m.parent_id, m.order_num
   </select>
@@ -141,7 +141,7 @@
         <if test="orderNum != null">order_num = #{orderNum},</if>
         <if test="path != null and path != ''">path = #{path},</if>
         <if test="component != null">component = #{component},</if>
         <if test="query != null">`query` = #{query},</if>
         <if test="query != null">"query" = #{query},</if>
         <if test="routeName != null">route_name = #{routeName},</if>
         <if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if>
         <if test="isCache != null and isCache != ''">is_cache = #{isCache},</if>
@@ -165,7 +165,7 @@
      <if test="orderNum != null">order_num,</if>
      <if test="path != null and path != ''">path,</if>
      <if test="component != null and component != ''">component,</if>
      <if test="query != null and query != ''">`query`,</if>
      <if test="query != null and query != ''">"query",</if>
      <if test="routeName != null">route_name,</if>
      <if test="isFrame != null and isFrame != ''">is_frame,</if>
      <if test="isCache != null and isCache != ''">is_cache,</if>