List<Test> listChildrens = list.get(0).getChildrens();
//组装参数
regionIds = listChildrens.stream().map(Test::getAgentId).collect(Collectors.joining(","));
java List集合获取某个属性逗号分割
最新推荐文章于 2023-12-08 15:34:30 发布
List<Test> listChildrens = list.get(0).getChildrens();
//组装参数
regionIds = listChildrens.stream().map(Test::getAgentId).collect(Collectors.joining(","));