RuoYi
2022-05-09 ea1014ff8f34c2783eeff8f474734ead840930c0
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