|
@@ -16,8 +16,12 @@ public class TopOneVideoContainer {
|
|
|
|
|
|
public void refreshTopVideoIdCache(){
|
|
public void refreshTopVideoIdCache(){
|
|
List<Record> recordList=client.getCurrentTopVideoRecords();
|
|
List<Record> recordList=client.getCurrentTopVideoRecords();
|
|
|
|
+ Map<Long,List<Long>> tempMap=new HashMap<>();
|
|
for(Record record:recordList){
|
|
for(Record record:recordList){
|
|
-
|
|
|
|
|
|
+ List<Long> idList=tempMap.getOrDefault(record.get("apptype"),new ArrayList<>());
|
|
|
|
+ if(idList.size()==0){
|
|
|
|
+ tempMap.put((Long)record.get("apptype"),idList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|