/** * 迭代删除权限 * * @param permissionIds 权限主键集合 */ private void iterationDeletePermission(List<String> permissionIds) { final List<Permission> permissionList = this.list(Wrappers.<Permission>lambdaQuery().in(Permission::getPermissionPid, permissionIds)); this.removeByIds(permissionIds); if (permissionList.size() > 0) { final List<String> ids = permissionList.stream().map(Permission::getPermissionId).collect(Collectors.toList()); this.iterationDeletePermission(ids); } }
来源:https://www.cnblogs.com/song1024/p/12518261.html