武汉8号线列车位置显示功能
This commit is contained in:
parent
d3aea82953
commit
0194749610
@ -99,7 +99,7 @@ public class TrainPositionService {
|
|||||||
if(Objects.equals(true,CollectionUtils.isEmpty(list))){
|
if(Objects.equals(true,CollectionUtils.isEmpty(list))){
|
||||||
list = sim.getRepository().getSectionList();
|
list = sim.getRepository().getSectionList();
|
||||||
List<String> list1 = list.stream().filter(d->d.getRoadType() == roadType && Objects.isNull(d.getKmMin())).map(d->d.getCode() + "-->" + d.getName()).collect(Collectors.toList());
|
List<String> list1 = list.stream().filter(d->d.getRoadType() == roadType && Objects.isNull(d.getKmMin())).map(d->d.getCode() + "-->" + d.getName()).collect(Collectors.toList());
|
||||||
System.out.println(list1);
|
log.info(list1.toString());
|
||||||
list = list.stream().filter(d->d.getRoadType() == roadType && Objects.nonNull(d.getKmMin()))
|
list = list.stream().filter(d->d.getRoadType() == roadType && Objects.nonNull(d.getKmMin()))
|
||||||
.sorted(Comparator.comparing(Section::getKmMin)).collect(Collectors.toList());
|
.sorted(Comparator.comparing(Section::getKmMin)).collect(Collectors.toList());
|
||||||
ROAD_TYPE_CACHE.put(roadType,list);
|
ROAD_TYPE_CACHE.put(roadType,list);
|
||||||
|
Loading…
Reference in New Issue
Block a user