浏览代码

增加用户是否包含角色查询。

zhengqiang 5 年之前
父节点
当前提交
559feb718e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/src/main/resources/mapper/sys/User.xml

+ 1 - 1
common/src/main/resources/mapper/sys/User.xml

@@ -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>