/**
* long类型的list集合,将其转化为带用 “,” 分割开来的String字符串
* @param longList 传入的List<Long>
* @return
*/
private static String longListToString(List<Long> longList){
StringBuilder stringBuilder = new StringBuilder();
for (Long longs : longList) {
String s = String.valueOf(longs);
stringBuilder.append(s).append(",");
}
String s = stringBuilder.toString();
return s.substring(0, s.length() - 1);
}