Browse Source

fix: 修复系统管理模块的一些bug

feature/agg
yinhuaiwei 15 hours ago
parent
commit
7e97eb30c7
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      inspect-management/src/main/resources/mapper/system/SysMenuMapper.xml
  2. +1
    -0
      inspect-management/src/main/resources/mapper/system/SysPostMapper.xml
  3. +2
    -2
      inspect-management/src/main/resources/mapper/system/SysRoleMapper.xml

+ 1
- 1
inspect-management/src/main/resources/mapper/system/SysMenuMapper.xml View File

@ -110,7 +110,7 @@
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} and m.type = 0
where ur.user_id = #{params.userId}
<if test="menuName != null and menuName != ''">
AND m.menu_name like concat('%', #{menuName}, '%')
</if>


+ 1
- 0
inspect-management/src/main/resources/mapper/system/SysPostMapper.xml View File

@ -46,6 +46,7 @@
<select id="selectPostAll" resultMap="SysPostResult">
<include refid="selectPostVo"/>
order by post_sort
</select>
<select id="selectPostById" parameterType="Long" resultMap="SysPostResult">


+ 2
- 2
inspect-management/src/main/resources/mapper/system/SysRoleMapper.xml View File

@ -94,12 +94,12 @@
<select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.role_name=#{roleName} limit 1
where r.role_name=#{roleName} and r.del_flag = '0' limit 1
</select>
<select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.role_key=#{roleKey} limit 1
where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
</select>
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">


Loading…
Cancel
Save