Browse Source

#智能预警

zhongwei
yang_shj 2 years ago
parent
commit
6b7ba050f1
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/StAlamRecordServiceImpl.java

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/service/impl/StAlamRecordServiceImpl.java

@ -732,9 +732,11 @@ public class StAlamRecordServiceImpl extends BaseServiceImpl<StAlarmRecordMapper
if(CollectionUtil.isEmpty(list)){
return null;
}
log.error("fault_list_stations: {}",stations);
log.error("fault_list_list: {}",list);
Map<String,String> map = stations.stream().collect(Collectors.toMap(StationEntity::getCode,StationEntity::getName));
return list.stream().filter(fault -> map.containsKey(fault.getStation())).map(o->{
o.setStationName(map.get(o));
o.setStationName(map.get(o.getStation()));
return o;
}).collect(Collectors.toList());
}

Loading…
Cancel
Save