List<Map<String, String>> collect = list.stream().map(a -> {
Map<String, String> map = new HashMap<>();
map.put("value", a.getId().toString());
map.put("label", a.getName());
map.put("typeId", a.getTypeId());
return map;
}).collect(Collectors.toList());
List<KzyEquipmentVO> k= list.stream().map(a -> {
KzyEquipmentVO kzyEquipmentVO = new KzyEquipmentVO();
BeanUtil.copyProperties(a, kzyEquipmentVO);
if (StringUtils.isNotBlank(a.getAlreadyInvestCount())) {
if (a.getTotalInvestCount().equals(a.getAlreadyInvestCount())) {
kzyEquipmentVO.setIsyf(0);
} else {
kzyEquipmentVO.setIsyf(1);
}
} else {
kzyEquipmentVO.setIsyf(1);
}
return kzyEquipmentVO;
}).collect(Collectors.toList());