Java 使用 Lambda 表达式拼接 字符串时间:2025-02-21 07:16:47List<ProductInfoVO> list = dao.queryDocesByCondition(condition); String value = list.stream().map(productInfoVO -> String.valueOf(productInfoVO.getReqType())).collect(Collectors.joining(","));