1. Integer[] arr = {1};
    2. List<AccountListResp> list = listResp.stream().peek(e -> e.setRow(arr[0]++)).collect(Collectors.toList());

    微信图片_20220316105137.png微信图片_20220316105215.png微信图片_20220316105158.png微信图片_20220316105151.png