//截取字符串 String[] propertyIdListString = jdzPortArgumentsVO.getPropertyIdList().split(","); //string 转为 long List<Long> propertyIdList = Arrays.stream(propertyIdListString) .map(s -> Long.parseLong(s.trim())).collect(Collectors.toList());