RuoYi
2022-08-23 00c2f97c75712d8524566a000db24e1adc34dcb7
src/main/resources/mybatis/system/SysRoleMapper.xml
@@ -65,7 +65,7 @@
      <include refid="selectRoleVo"/>
   </select>
   
   <select id="selectRoleListByUserId" parameterType="Long" resultType="Integer">
   <select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
      select r.role_id
        from sys_role r
           left join sys_user_role ur on ur.role_id = r.role_id
@@ -85,12 +85,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">