RuoYi
2021-11-30 37fef62d9ea1c15d4dccbc6cfa0049c2d0e6663d
src/main/resources/mybatis/system/SysRoleMapper.xml
@@ -33,6 +33,9 @@
    <select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
      <include refid="selectRoleVo"/>
      where r.del_flag = '0'
      <if test="roleId != null and roleId != 0">
         AND r.role_id = #{roleId}
      </if>
      <if test="roleName != null and roleName != ''">
         AND r.role_name like concat('%', #{roleName}, '%')
      </if>
@@ -62,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