delete from sys_role_user where role_id in #{roleId} AND valid = 1 delete from sys_role_user where user_id in #{userId} AND valid = 1