hongjli
2025-05-14 24eb8a2c2eb67bf3aab16593f52ed93802eed1cb
aps-modules/aps-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -37,7 +37,7 @@
      <include refid="selectMenuVo"/>
      <where>
         <if test="menuName != null and menuName != ''">
            AND menu_name like concat('%', #{menuName}, '%')
            AND menu_name like '%' || #{menuName} || '%'
         </if>
         <if test="visible != null and visible != ''">
            AND visible = #{visible}
@@ -63,7 +63,7 @@
      left join sys_role ro on ur.role_id = ro.role_id
      where ur.user_id = #{params.userId}
      <if test="menuName != null and menuName != ''">
            AND m.menu_name like concat('%', #{menuName}, '%')
            AND m.menu_name like '%' || #{menuName} || '%'
      </if>
      <if test="visible != null and visible != ''">
            AND m.visible = #{visible}
@@ -81,7 +81,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
          left join sys_user u on ur.user_id = u.user_id
      where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0  AND ro.status = 0
      where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = '0'  AND ro.status = '0'
      order by m.parent_id, m.order_num
   </select>