@@ -111,6 +111,6 @@
<select id="hasRole" resultType="long">
select count(*) from sys_user_role ur,sys_role r
where ur.role_id = r.id_
- and ur.user_id = #{0} and r.name_=#{1}
+ and ur.user_id = #{userId} and r.name_=#{roleName}
</select>
</mapper>