int[] ints = recordDTO.getIdList().stream().mapToInt(Integer::parseInt).toArray();
List<Integer> ids = Arrays.stream(ints).boxed().collect(Collectors.toList());
测试
注意,必须是数字的字符串,不然会报错
int[] ints = recordDTO.getIdList().stream().mapToInt(Integer::parseInt).toArray();
List<Integer> ids = Arrays.stream(ints).boxed().collect(Collectors.toList());
测试
注意,必须是数字的字符串,不然会报错