Map<String, List<OamMaintainInfo>> loadInfoTemp = loadInfos.stream().filter(a->a.getFaultno() != null).collect(Collectors.groupingBy(OamMaintainInfo::getFaultno));
List<Integer> matainInt = loadInfos.stream().filter(Objects::nonNull).map(OamMaintainInfo::getMaintainid).collect(Collectors.toList());
String matainStr = matainInt.stream().map(String::valueOf).collect(Collectors.joining(","));
List<BaseLogrecordInfo> logrecordlist = baseLogrecordService.findlastsList(matainStr+"", "maintain");
Map<Integer, List<BaseLogrecordInfo>> logrecordlistTemp = logrecordlist.stream().filter(a->a.getFromid() != null).collect(Collectors.groupingBy(BaseLogrecordInfo::getFromid));
List<OamAlarmInfo> oamAlarmInfo = oamAlarmInfos.stream().filter(a ->StringUtil.isNotBlank(a.getCodes()) && StringUtil.isNotBlank(a.getFactory()) &&
(a.getCodes().equals(model.getAlarmcode()) && a.getFactory().equals(model.getBrand()))).collect(Collectors.toList());
java 8常用特性
最新推荐文章于 2024-11-01 14:48:20 发布