|
@@ -146,7 +146,7 @@ public class InitialRunner implements CommandLineRunner {
|
|
public void cacheHistory(){
|
|
public void cacheHistory(){
|
|
historyModelMap.clear();
|
|
historyModelMap.clear();
|
|
historyList.clear();
|
|
historyList.clear();
|
|
- List<Diagnosetrainhistory> historyList = diagnosetrainhistoryService.getListAll();
|
|
|
|
- historyModelMap = historyList.stream().filter(a -> a.isEnable()).collect(Collectors.groupingBy(Diagnosetrainhistory::getModel));
|
|
|
|
|
|
+ historyList = diagnosetrainhistoryService.getListAll();
|
|
|
|
+ historyModelMap = historyList.stream().collect(Collectors.groupingBy(Diagnosetrainhistory::getModel));
|
|
}
|
|
}
|
|
}
|
|
}
|