Explorar el Código

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

zhengqiang hace 5 años
padre
commit
559feb718e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>