1
13693261870
2024-09-10 9ec7cc0254126fc72f8cb5bdcf79fef9a61230e9
se-modules/se-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -62,7 +62,11 @@
      left join sys_role_menu rm on m.menu_id = rm.menu_id
      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 ur.user_id = #{params.userId}
      -- where ur.user_id = #{params.userId}
      <where>
         <if test="userId != null">
            ur.user_id = #{userId}
         </if>
      <if test="menuName != null and menuName != ''">
            AND m.menu_name like concat('%', #{menuName}, '%')
      </if>
@@ -72,6 +76,10 @@
      <if test="status != null and status != ''">
            AND m.status = #{status}
      </if>
         <if test="mark != null and mark != ''">
            AND m.mark = #{mark}
         </if>
      </where>
      order by m.parent_id, m.order_num
   </select>
@@ -83,7 +91,7 @@
          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 m.menu_type in ('M', 'C') and m.status = 0 and ro.status = 0
         <if test="userId != null and userId != ''">
         <if test="userId != null">
            and u.user_id = #{userId}
         </if>
         <if test="mark != null and mark != ''">