List <String> lst = new ArrayList<>(level_id_list);
String str = "";
for (int i = 0; i <lst.size() ; i++) {
if (str.length() >0) {
// str.append( "," + lst.get(i));
str += "," + lst.get(i);
} else {
str+=lst.get(i);
// str.append(lst.get(i));
}
}
接口上传参数 靠逗号拼接字段
最新推荐文章于 2023-04-20 10:48:27 发布