项目权限(差一个认证参数列表权限没弄)
This commit is contained in:
+2
@@ -43,4 +43,6 @@ public interface SysRoleMapper extends BaseMapper<SysRole> {
|
||||
"where user_id = #{userId}")
|
||||
List<SysRole> getRoleByUserId(@Param("userId") String userId);
|
||||
|
||||
@Select("SELECT count(0) from sys_user_role ur LEFT JOIN sys_role r ON r.id = ur.role_id WHERE r.role_code = #{roleCode} and ur.user_id = #{userId}")
|
||||
Integer queryUserRoleByCode(@Param("roleCode")String roleCode, @Param("userId")String userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user