stream流配合lamda表达式统计对象属性对应的数量
//统计数量 long failNum = allRecords.stream().filter(record -> record.getPublishStatus().equals(0)).count(); long successNum = allRecords.stream().filter(record -> record.getPublishStatus().equals(1)).count(); long cancelNum = allRecords