|
|
|
@ -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()); |
|
|
|
|
} |
|
|
|
|