案例萃取,bug

This commit is contained in:
yang
2024-09-11 19:15:34 +08:00
parent 20c05afda9
commit efcee67fe1

View File

@@ -513,15 +513,16 @@ public class CasesServiceImpl implements ICasesService {
List<String> authorTags = new ArrayList<>(); List<String> authorTags = new ArrayList<>();
if (excellentCountMap.get(e.getAuthorId())!=null){
String authorTagOfExcellent = excellentCountMap.get(e.getAuthorId()) + "篇最佳案例";
authorTags.add(authorTagOfExcellent);
}
if (viewTopCountMap.get(e.getAuthorId())!=null){ if (viewTopCountMap.get(e.getAuthorId())!=null){
String authorTagOfView = "上榜浏览量TOP榜单" + viewTopCountMap.get(e.getAuthorId()) + ""; String authorTagOfView = "上榜浏览量TOP榜单" + viewTopCountMap.get(e.getAuthorId()) + "";
authorTags.add(authorTagOfView); authorTags.add(authorTagOfView);
} }
if (excellentCountMap.get(e.getAuthorId())!=null){
String authorTagOfExcellent = excellentCountMap.get(e.getAuthorId()) + "篇最佳案例";
authorTags.add(authorTagOfExcellent);
}
e.setAuthorTags(authorTags); e.setAuthorTags(authorTags);
}); });
} }