匹配集合里面某个字段标签:toList,stream,Collectors,bo,getJz,jdk8,使用 From: https://www.cnblogs.com/shendidi/p/17046017.html
YthgkZdryHb hb = hbList.stream().filter(bo -> !bo.getJz().equals(ythgkZdry.getJz())).collect(Collectors.toList()).get(0);
将集合里面某个字段拼接成List<String>
List<String> zdryzjGcb = zdryVo.getHblist().stream().map(zdryGcb->zdryGcb.getZdryzjgcb()).collect(Collectors.toList());