jdk1.8 stream() 把List 变成String List<String> zts = ss.getZts(); if (!CollectionUtils.isEmpty(zts)){String zt = zts.stream().collect(Collectors.joining("','", "'", "'")); } 就可以变成'1','2' 这种形式