Browse Source

[fix]

基础资料 角色管理
修改校验角色名称和权限字符唯一mapper方法,添加删除标识为未删除条件;
dev
王晓迪 1 month ago
parent
commit
ddfb455ca5
  1. 4
      ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

4
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

@ -70,12 +70,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleResult"> <select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/> <include refid="selectRoleVo"/>
where r.role_name=#{roleName} limit 1 where r.role_name=#{roleName} and r.del_flag = '0' limit 1
</select> </select>
<select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult"> <select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/> <include refid="selectRoleVo"/>
where r.role_key=#{roleKey} limit 1 where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
</select> </select>
<select id="selectRoleListByRoleIds" parameterType="String" resultMap="SysRoleResult"> <select id="selectRoleListByRoleIds" parameterType="String" resultMap="SysRoleResult">

Loading…
Cancel
Save