字符串转集合
String ids = "7,8,9,10,11";
List<Integer> idList = Arrays.stream(ids.split(",")).map(Integer::parseInt).collect(Collectors.toList());
集合转字符串(需要引入hutool工具包)
List<String> userIds = users.stream().map(MatchGroupUserEntity::getMallUserId).collect(Collectors.toList());
ids = Joiner.on(",").join(userIds);