list取字段值,并且拼接成string字符串 List tradePayLogs tradePayLogs.stream().map(s->s.getBankName()).collect(Collectors.joining(","));